Josué Ayala
07/22/2022, 5:27 AMsupabase.auth.user()
on the server side, the main reason is cuz I'm trying to create a route middleware with nuxt.jsrinorzk
07/22/2022, 8:35 AM@supabase/auth-helpers-nextjs
you should give it a tryrinorzk
07/22/2022, 8:36 AMrinorzk
07/22/2022, 8:58 AMGianni
07/22/2022, 3:52 PMts
async function signInWithDiscord() {
const { user, session, error } = await supabase.auth.signIn({
provider: 'discord',
})
}
Gianni
07/22/2022, 3:54 PMfreshandlow
07/22/2022, 4:39 PMGianni
07/22/2022, 4:57 PMskyclo
07/22/2022, 9:03 PM"Invalid token: token is expired by 8m21s"
). I tested this further and attempted to refresh the token only to be met with the same error but with a time of 1s
. Can anyone help in regards to why my JWTs are immediately expiring after being generated?Tekey
07/24/2022, 5:25 AMPhantomCode
07/24/2022, 8:00 AMPhantomCode
07/24/2022, 8:34 AMsilentworks
07/24/2022, 10:18 AMjJ
07/24/2022, 3:22 PMjavascript
// index.ts
import { serve } from "https://deno.land/std@0.131.0/http/server.ts"
import puppeteer from "https://deno.land/x/puppeteer@9.0.0/mod.ts";
import { cheerio } from "https://deno.land/x/cheerio@1.0.6/mod.ts";
serve(async (req) => {
const { url } = await req.json()
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto(url);
const html = await page.content();
const $ = cheerio.load(html);
const title = $('title');
const data = {
title: title,
}
return new Response(
JSON.stringify(data),
{ headers: { "Content-Type": "application/json" } },
)
})
on
supabase functions deploy myfunc
returns:
bash
Error: Error bundling function: exit status 1
error: TS2339 [ERROR]: Property 'load' does not exist on type '(selector: any, context: any, root: any, opts: any) => any'.
const $ = cheerio.load(html);
Many thanks in advance, JoeTekey
07/24/2022, 4:25 PMgaryaustin
07/24/2022, 4:51 PMTekey
07/24/2022, 4:57 PMmetruzanca
07/24/2022, 10:15 PMmetruzanca
07/24/2022, 10:41 PMgaryaustin
07/24/2022, 10:55 PMmetruzanca
07/24/2022, 10:56 PMmetruzanca
07/24/2022, 10:56 PMmetruzanca
07/24/2022, 10:56 PMmetruzanca
07/24/2022, 10:58 PMmetruzanca
07/24/2022, 10:58 PMMattyfaz
07/25/2022, 12:51 PM<img src="xxx">
? I can only seem to get it to work by making it public.garyaustin
07/25/2022, 1:07 PMMattyfaz
07/25/2022, 1:45 PMgaryaustin
07/25/2022, 1:49 PMMattyfaz
07/25/2022, 1:57 PM