Why my Authorization does not update ?
i have this in
_app.tsx
and this is my client that setToken i uuse in login component as here How to change my code to update Authorization ?2 Replies
@Nick Lucas any chance of help?
I think you are storing the token in a cookie... why not pick it from there?
If you dont want to store it in a cookie for some reason... store it in localstorage / sessioinstorage....
or store it in a globabl-state like Recoil.
here you seem to be using variables to store values... the variables deem to reset on re-mount of the component....