<@498057949541826571> Hi, i have a problem: supert...
# support-questions-legacy
i
@rp_st Hi, i have a problem: supertokens token lifetime is not processed correctly in browsers. For example I have jwt with exp 1700223365, in data it is GMT: Friday, 17 November 2023 г., 12:16:05. But in browsers i have expiration Sat, 23 Dec 2023 22:16:06 GMT for this. So, while token has expired, browser does not try to refresh it and sends it to api, where it is expired. And my question is: why real expiration date in st-access-token payload much less than time that browsers decrypt themselves?
r
hey @IaS1506 this is expected, the API should return a 401 here and then that should trigger the refresh. The reason for this is that if the lifetime of the token in the browser was the same as thr access token lifetime, then in API calls, the broeser would not send the token, and it would be impossible to detect on the backend if the session exists, but requires a refresh vs a session deosn't exist,.
i
OK. it's just for my exprience, bc we have a lot of other problems using supertokens. So my company is transfering for self-written solution rigth now
🥺
It is sad, but I cant do anything with it
r
oh! thats sad to hear. Can we get feedback on what all went wrong?
i
we have big cycles of refresh and email verify
So our backend gets so angry when he tries to incapsulate his own needs
and everything crashes bc 100 thousands of requests
r
hmmm. I see.
so there are lots of requests that go to the backend due to refresh and email verification?
this usually happens if your user has incorrect system time set on their machine
i
Yeah
I tried to search info in discord about them
and i found solutions
but when we iplement them
other thing has crush
and by this logic we worked last 3 mounth
r
what was the other thing that crashed?
i
we implement a thing with access token st-ev feature for time checking
then our production version of frontend dies bc of st-ev updating
then we disable it for your advice
and auth died fully for all instances
so we roolback
r
hmm. These are strange issues. Im sure they can be fixed with some guidance, and id be happy to help out here.
i
Yeah, I could do this job like requesting you for support questions further\
but my boss thinks differently
:/
r
alright! if you need our help, we are here to help 🙂
if not, then good luck!
and thanks for using supertokens all this while 🙂
i
Just in case, I’ll ask: do you have any vacancies for developers from Russia? If I suddenly need to look for work 🙂
r
you could apply to us by emailing dixita@supertokens.com with your resume and a summary about what you are looking to do 🙂
i
ok, I'll keep it on mind
3 Views