User gets logged out after 5-10 seconds.

I tried a few minutes ago to use my app and after logging and nagivating around abit i got logged out. it happends every 5-10 seconds. I was using it this morning and it was working fine
17 Replies
Redfill The Canadien
im gonna contact support aswell to be sure
garyaustin
garyaustin2mo ago
No issues currently being reported like this. Anything in your auth logs in the dashboard? What is your environment? Are you using SSR? Any errors in your client code before?
Redfill The Canadien
{code: "over_request_rate_limit", message: "Request rate limit reached"} code : "over_request_rate_limit" message : "Request rate limit reached" using vite and vuejs. i understand what the error message is saying, but it was working for the past months perfectly well and i dont have any users at the momment so not sure whats causing it
garyaustin
garyaustin2mo ago
What auth call is getting that error? Either you need to raise the limit in the dashboard OR you are in a loop of some sort calling it to often. The issue will be in your code.
Redfill The Canadien
hmm alright, i looked at the auth logs and im suprised i didnt notice before
No description
garyaustin
garyaustin2mo ago
https://supabase.com/docs/guides/auth/rate-limits But you are calling token way too often for a single user.
Redfill The Canadien
i indeed am
garyaustin
garyaustin2mo ago
Did you change the JWT expire time?
garyaustin
garyaustin2mo ago
No description
garyaustin
garyaustin2mo ago
If that is too short it would cause constant /token calls to refresh.
Redfill The Canadien
i didnt change it, im gonna rechekc my code because it doesnt feel normal the ammont of call happening
garyaustin
garyaustin2mo ago
But it could also just be your code looping on something.
Redfill The Canadien
that most likely is, just strange i didnt cause issues before, the bug is happening on an old build aswell. thanks for me the help!
garyaustin
garyaustin2mo ago
The call can be signinwithpassword or a refresh token call.
Redfill The Canadien
okay i found the solution....... I am dual booting and when going from my linux to my windows, it aslways changes my timezone for a few hours ahead (idk why) and thats what was causing the issue. resetting my timezone fixed it i guess my app was trying to refresh the token and was falling in a loop
garyaustin
garyaustin2mo ago
Could have been the supabase client code thinking it was constantly expired and redoing the refresh.
Redfill The Canadien
exactly what i had in mind

Did you find this page helpful?