How best to implement authentication in Vue js 2?

0 like 0 dislike
57 views
Hello!
How best to implement authentication for the admin panel under Vue js?
that is where to check for authorization token(in Routh or main.js) and wherein the need to do a redirect, or check the rights....well generally such things as better to implement?
there are API, authorization through a token.
on the Internet esteemed not so much the article but there is generally wrote a mess...difficult to understand
give an example or tips if you work with Vue Js om
by | 57 views

2 Answers

0 like 0 dislike
by
0 like 0 dislike
Use jwt is very convenient. https://github.com/websanova/vue-auth
Avtorizacija on ranting and hung and there is a mechanism for rbac. There are examples of solutions for laravel.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
110,608 questions
257,187 answers
0 comments
40,796 users