0

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?

chirag
  • 75
  • 8

1 Answers1

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