Tarikul islam Nahid
Tarikul islam Nahid

Reputation: 11

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

Upvotes: 0

Views: 334

Answers (1)

Hani Gerges
Hani Gerges

Reputation: 92

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

Upvotes: 1

Related Questions