auth0-blog / vue-jwt-authentication

MIT License
509 stars 112 forks source link

Using Vuex #7

Open ramstein74 opened 8 years ago

ramstein74 commented 8 years ago

Not an issue but dont know where else to ask your comment.

i really liked this repo. Do you think vuex could make it even better coded?

http://vuex.vuejs.org/en/intro.html

Many thanks for your work

chenkie commented 8 years ago

Thanks! I'll look into getting a demo together that uses Vuex :)

mkelley82 commented 8 years ago

@chenkie Did you ever come up with anything? I'd also be interested!

TimothySealy commented 7 years ago

It depends on what you want to put in the Vuex store. I would not recommend storing the tokens in the store because refreshing the page would clear the store (leading to lost tokens). Storing them in the local storage will persist them after a refresh.