How to implement refresh token in remix? #6252
Replies: 1 comment 3 replies
-
|
I have been trying to fin da solution to this as well. I found this blog post that outlines a way to do this. I am yet to find a way to register an I had an initial idea of applying the token in the @sergiodxa's blog post I linked to mentions that ideally a One of my attempts tried to add the interceptor in the loader, but that will make the interceptor register multiple times as Failing everything I guess we have to do wha the blog post suggests and add the headers on each loader or action where we need it. I am aiming to spend some more time on this shortly. You can monitor my progress here. I will post on this thread if I am successful. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using separate express server and it has refresh token function. In remix I am able to refresh the tokens using axios interceptors but from interceptor failed to create new createUserSession with new access and refresh token.
I am hiding the access and refresh token inside the remix sessions and extracting them inside axios interceptors but from there I stuck because the createUserSession not working there anymore.
Please help me
Beta Was this translation helpful? Give feedback.
All reactions