When I login then Get token successfully. and also i navigate from one page to another page then also token remain. But when I press F5 (refresh) token or userData lost. What to do?
Asked
Active
Viewed 605 times
1 Answers
3
You need to save your token and userData in some variable or in a localstorage. That way it will not be lost after refresh. Take a look here for example.

Joe Belladonna
- 1,349
- 14
- 20