简体   繁体   中英

How to store JWT token in VueX without local storage

How to store JWT token in VueX without local storage. Does it have an easy way? How do I store tokens?

How to store token and Users or visitors cannot see it

you can just commit it using mutation, but once you refresh the page it will gone. thats why Local Storage is needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM