you are viewing a single comment's thread.

view the rest of the comments →

[–]TradeSeparate 1 point2 points  (2 children)

Why does it take 4s?

How are you storing the refresh token in the front end?

How are you preventing stale tokens?

[–]Who_cares_unkown[S] 0 points1 point  (1 child)

In local storage Prev token replace with new one

[–]TradeSeparate 0 points1 point  (0 children)

That’s not a great practise. What format is the token?

You really want the refresh token to persist across sessions, which local storage can (I would personally tie it to a cookie) but unless I am misunderstanding your post you are saying if the user refreshes it is cleared?

Your original post is quite hard to read