In this video, we work on all the Authentication parts that need to happen on the front end. We make AJAX requests to our API and retrieve a valid token. We store that token using Local Storage in order to make subsequent requests as a logged in user. We then take a look at navigation guards to prevent users from accessing endpoints that are meant for logged in users.
Local Storage vs Cookies
=======================
Video: • Storing JWT tokens localStorage vs. C...
Article: https://stormpath.com/blog/where-to-s...
Article: https://dev.to/rdegges/please-stop-us...
GitHub: https://github.com/drehimself/todo-vu...
LINKS
My courses: https://codewithdre.com
Sign up for my newsletter: http://andremadarang.com/newsletter
My website: http://andremadarang.com
Twitter: / drehimself
GitHub: http://github.com/drehimself
CodePen: http://codepen.io/drehimself