skip to Main Content

Problem with Nuxt3 Firebase Auth Middleware

In a Nuxt3 project I am using Firebase auth. I have created the following middleware to protect not authenticated routes: export default defineNuxtRouteMiddleware((to, from) => { const { $auth } = useNuxtApp(); const { $localePath } = useNuxtApp(); if(!$auth?.currentUser?.uid){ return…

VIEW QUESTION
Back To Top
Search