asleepingpanda
03/12/2022, 8:47 PMsupabaseClient.auth.setAuth(access_token)
, but I get null
for the return value of user
every time with no error
being thrown..?garyaustin
03/12/2022, 9:16 PMsetAuth(access_token: string): Session {
this.currentSession = {
...this.currentSession,
access_token,
token_type: 'bearer',
user: null,
}
I'd try:
const { user, error } = await supabase.auth.api.getUser( access_token)
after it...
But I don't do stuff on a server so not positive...asleepingpanda
03/12/2022, 9:17 PMgaryaustin
03/12/2022, 9:18 PMasleepingpanda
03/12/2022, 9:20 PMasleepingpanda
03/12/2022, 9:21 PMsetAuth
isn't actually doing anything. user
keeps returning null...garyaustin
03/12/2022, 9:22 PMasleepingpanda
03/12/2022, 9:23 PMgaryaustin
03/12/2022, 9:23 PMasleepingpanda
03/12/2022, 9:58 PMuser
came back valid. We're heading in the right direction. I'm trying to set this query up real quick in order to validate the setAuth
methodgaryaustin
03/12/2022, 10:54 PMasleepingpanda
03/12/2022, 11:15 PM