Hey, I am using google oauth in supabase, why i am getting logged out automatically after few mins, how do i fix this?
k
ktosiek
12/23/2021, 8:09 AM
Is this 60 minutes, by any chance? Have you changed your JWT Expiry TTL in Authentication settings?
r
Rutik
12/23/2021, 9:59 AM
no it says 3600 in jwt expiry
Rutik
12/23/2021, 10:03 AM
I tried increasing it but it says Update config failed: An error has occured: Failed to fetch
k
ktosiek
12/23/2021, 10:05 AM
right, but the important part is: do you get logged out after ~1h, or earlier?
ktosiek
12/23/2021, 10:07 AM
can you see what's the server response when your app thinks you're logged out?
r
Rutik
12/23/2021, 4:42 PM
earlier, and very frequently. it happens when i make changes in the code while server is running on localhost or when i refresh it, and no response when it happens
k
ktosiek
12/23/2021, 8:47 PM
it sounds like you're not reusing the auth/refresh token between page refreshes, but I have no idea how to help you debug that :-C