VueJS Auth Part 2 - Navigation guards and Token Authentication (Building a VueJS App Part 9 )

preview_player
Показать описание
In a recent tutorial, we built a login and registration system... but they aren't actually secure yet. Random people can still create, edit, and delete videos!

To fix this, we'll apply two solutions. First, we'll use Vue Router's navigation guards to redirect anyone who lands on a page they're not supposed to be visiting. Then we'll add token authentication, letting the frontend and backend work together to secure our data.

0:00 Start
1:42 Navigation Guards
7:21 Nested Routes
15:41 Token Authentication
27:08 Review

*** Github Links ***

*** Find me online! ***

Website coming soon.

#TokenAuthentication #Auth #Authorization #VueRouter #NavigationGuards #VueJS #LocalStorage #Vue #2019 #Tutorial
Рекомендации по теме
Комментарии
Автор

Why so few subscribers? You are doing amazing job

nathanyang
Автор

great video as ALWAYS :) thanks and keep going with that great project!

alexeilevinzon
Автор

Excellent video! Answered a lot of questions that I was having when it comes to handling roles in Vue.

secondsive
Автор

not getting current user in local storage

sameergaikwad
Автор

you can actually just import the store in your router and then you have access to the state

elmarzimmermann
Автор

the token will be different every time of course

levizjaperdije