Voko2255
05/01/2022, 1:38 AMBryan K.
05/01/2022, 7:25 AMinviteUserByEmail(email, redirectURL)
sbr
05/01/2022, 11:51 AMFehmi
05/01/2022, 12:10 PMyxsh
05/01/2022, 12:23 PMts
useEffect(() => {
const user = supabase.auth.user();
},[])
but it returns null even tho their is a user logged in
i have to use setTimeout()
and sometimes that doesn't work tooFehmi
05/01/2022, 12:52 PMjs
const { createClient } = require('@supabase/supabase-js');
const access_token = "....." // I got this from my working React front end and validated the token from jwt.io, which can decode the token
const supabaseUrl = "https://......supabase.co"
const public_anon_key = "......"
const supabase = createClient(supabaseUrl,public_anon_key)
async function validateUser() {
let {user, data, error} = await supabase.auth.api.getUser(access_token)
console.log( {user, data, error})
}
validateUser()
I get
{
user: null,
data: null,
error: { message: 'Invalid token: signature is invalid', status: 401 }
}
Januário
05/01/2022, 2:20 PM4Omin
05/01/2022, 2:46 PMProdigy7kX
05/01/2022, 4:51 PMjs
.select(
`
*,
members:teams_members(*)
`
)
This will give something like this:
json
[{
...
members: {...}
}]
My question is: Is there a way to just "spread" the members
object inside its parent via the select statement?TJ
05/01/2022, 5:21 PMTrey
05/01/2022, 7:49 PMuseUser
hook in my Next.js app, it just spams the hell out of these endpoints? I'm logged in and have valid data coming from that hook, it just seems to be constantly revalidatingkavla
05/01/2022, 8:17 PMjoa
05/01/2022, 8:22 PMlast_active timestamptz
column, and the thought was to have a trigger set the field to now()
on every INSERT and UPDATE. So, I created a function for this (which returns a trigger) and then set that as a trigger "on" the table. However, I can't see that anything is happeningoystermaker
05/01/2022, 8:28 PM502: Bad Gateway (ORIGIN_BOOT_RPC_ERROR)
The subhoster origin returned a failure status for the boot RPC call. Status: 500 Internal Server Error
any help would be appreciated 🙂Needle
05/01/2022, 8:40 PM/title
command!
We have solved your problem?
Click the button below to archive it.cainus
05/02/2022, 12:14 AMShaneTheKing
05/02/2022, 2:18 AMKadnium
05/02/2022, 9:56 AMtorkleyy
05/02/2022, 10:38 AMhello-world
(autogenerated) function using curl:
The subhoster origin specified an invalid `x-deno-config` header on the boot RPC response: invalid unicode code point at line 1 column 754.
I literally just did supabase functions new hello-world
and supabase functions deploy hello-world
, then ran the curl command shown on the dashboard.aaaaeeee
05/02/2022, 11:04 AMSTILLWATER;
05/02/2022, 11:12 AMMartin Kmieciak
05/02/2022, 11:57 AMStudywithdesign
05/02/2022, 1:42 PMStudywithdesign
05/02/2022, 2:04 PMVuNguyen
05/02/2022, 2:29 PMGabriel_
05/02/2022, 2:58 PMsupabase/cli
?ShaneTheKing
05/02/2022, 3:23 PMJustin | PocketUniverse
05/02/2022, 3:47 PMNeedle
05/02/2022, 4:05 PMmonsto
05/02/2022, 6:17 PM