codyseibert/tab-tracker

[Question] Why do we need an AuthenticationService?

Opened this issue · 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?

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.