Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

The Vue.js Master Class

Get access to this course, 22 others, and future Vue.js courses!

Protecting Pages from Authenticated Users

In this lesson, we will create another navigation guard in our middleware to be able to protect routes from authenticated users. Certain pages should only be visible to authenticated users, while others should only be visible to guests. Let's get to it!