skip to Main Content

Firebase – How can I connect to a non-default firestore database using Node (using multiple firestore databases)?

I have multiple firestore databases in my project. The databases were created using the command line and I can see it in the Firestore Databases preview following the instructions here: https://cloud.google.com/blog/products/databases/manage-multiple-firestore-databases-in-a-project I am able to connect to the default database,…

VIEW QUESTION

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