Store Token in localStorage, sessionStorage or cookie

Options
Hello,
Im building a verry simple webapplications with 2 secure pages (profile page with user data). once a user login he will be redirected to his profile page where he can update his profile.

what is the best way to handle this. 
store token in localstorage, session storage or in a cookie?

Hope someone can help me.
thank you

Comments

  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options
    I've looked under the covers on this. Localstorage is what most web apps - including Auth0 - use for storing the token to survive an immediate refresh, and it's what I've helped others implement. 
  • Mohamed
    Mohamed Member
    Options
    Hi Ray,
    Thank you for your answer 👍