Hello, I have the issue with performance. When I make a request for a refresh token, after success ...
s
Hello, I have the issue with performance. When I make a request for a refresh token, after success I make a request api but supertokens response 401 but I set timeout for example 2 sec everything is good
r
hey @sergey.telpuk where do you add the 2 sec timeout?
s
On frontend side
r
when though?
i would need some more detail to understand whats happening
s
The frontend sdk makes a request for a refresh token. After that I call api endpoint but get 401 immediately but after several millisecond my new session is valid
r
does the new request (immediately post refresh) have the new access token?
s
Yes
Via cookies
It looks like supertones doesn't update your session at once
r
right. Can you enable backend debug logs and show the log output when the API that returns a 401 is called?
s
Sorry , I found my mistake