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

The Vue.js 3 Masterclass

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

Firestore Rules and Protecting Pages for Authenticated Users

🚧 PLEASE NOTE: This masterclass is built with the Options API
vuejs-masterclass

The Composition API Masterclass is coming soon!

In this lesson we utilize the requiresAuth route meta to keep guests from visiting pages that they shouldn't. We also put some Firestore Rules into place so that users and guests can't alter data that should be off limits.

It's important to remember with Vue.js 3 single page applications (SPAs) that while route guards are handy, they all occur on the client side and you must ensure that you also take steps on the server side to secure your application's data.

Links