Maz
12/24/2021, 6:44 PMsupabase.auth.api.getUserByCookie(req)
(using next.js), and on the client I'm using supabase.auth.user()
.
What often happens is in a pretty short time period after authentication (30 mins or so), the getUserByCookie
starts returning null, but supabase.auth.user()
correctly resolves the user on the client.
I still have the sb:token cookie and it's not expired yet, so I'm confused why that's not working
Any idea what I might be doing wrong?silentworks
12/24/2021, 6:52 PMsupabase.auth.api.setAuthCookie
Maz
12/24/2021, 6:55 PMMaz
12/24/2021, 6:55 PMsb:token
cookie setMaz
12/24/2021, 6:57 PMMaz
12/24/2021, 6:58 PMMaz
12/24/2021, 6:58 PMsilentworks
12/24/2021, 7:00 PMsilentworks
12/24/2021, 7:01 PMMaz
12/24/2021, 7:01 PMsilentworks
12/24/2021, 7:02 PMsilentworks
12/24/2021, 7:02 PMMaz
12/24/2021, 7:03 PMMaz
12/24/2021, 7:03 PMsilentworks
12/24/2021, 7:03 PMsilentworks
12/24/2021, 7:04 PMMaz
12/24/2021, 7:10 PM@supabase/ui
Auth
stuff, I'm guessing there's nothing in there that would be relevant for refreshing tokens. Only thing I can see in that source for that component that i'm not using is auth.session()silentworks
12/24/2021, 7:14 PMsilentworks
12/24/2021, 7:15 PMMaz
12/24/2021, 7:24 PMMaz
12/24/2021, 7:25 PMRutik
12/24/2021, 9:09 PMsilentworks
12/24/2021, 9:52 PMsilentworks
12/24/2021, 9:53 PM