Store Token in localStorage, sessionStorage or cookie
Options
![Mohamed](https://us.v-cdn.net/6037124/user_avatars/4081806.jpg)
Mohamed
Member ✭
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
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
-
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.
-
Hi Ray,
Thank you for your answer 👍
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback