We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cca1277 commit 500b37eCopy full SHA for 500b37e
packages/nuxt/src/runtime/auth/plugin.server.ts
@@ -3,6 +3,7 @@ import type { User } from 'firebase/auth'
3
import { VueFireAuthServer } from 'vuefire/server'
4
import { UserSymbol } from '../admin/plugin-auth-user.server'
5
import { defineNuxtPlugin } from '#app'
6
+import { log } from '../../logging'
7
8
/**
9
* Setups the auth state based on the cookie.
@@ -12,6 +13,8 @@ export default defineNuxtPlugin((nuxtApp) => {
12
13
// @ts-expect-error: this is a private symbol
14
const user = nuxtApp[UserSymbol] as User | undefined | null
15
16
+ log('setting up user for app', firebaseApp.name, user?.uid)
17
+
18
// provide the user data to the app during ssr
19
VueFireAuthServer(firebaseApp, nuxtApp.vueApp, user)
20
})
0 commit comments