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
im gonna contact support aswell to be sure
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?
{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
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.
hmm alright, i looked at the auth logs and im suprised i didnt notice before

https://supabase.com/docs/guides/auth/rate-limits
But you are calling token way too often for a single user.
i indeed am
Did you change the JWT expire time?

If that is too short it would cause constant /token calls to refresh.
i didnt change it, im gonna rechekc my code because it doesnt feel normal the ammont of call happening
But it could also just be your code looping on something.
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!
The call can be signinwithpassword or a refresh token call.
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
Could have been the supabase client code thinking it was constantly expired and redoing the refresh.
exactly what i had in mind