tab-tracker icon indicating copy to clipboard operation
tab-tracker copied to clipboard

[Question] Why do we need an AuthenticationService?

Open areebbeigh opened this issue 6 years ago • 1 comments

I'm just starting out with this tutorial series and I'm confused about why we need to use an AuthenticationService to register / login users? Can't we simply have a register/login form on the front end that submits to the express server through POST?

areebbeigh avatar Dec 12 '18 10:12 areebbeigh

Verifying tokens in HTTP headers is one of the best authentication practices in single page applications. Register/login actually submits POST method to a server and Vue+Vuex is storing the token in a browser's local storage.

s-gryt avatar Dec 13 '18 06:12 s-gryt