Skip to content

Commit 500b37e

Browse files
committed
chore: logs
1 parent cca1277 commit 500b37e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/nuxt/src/runtime/auth/plugin.server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { User } from 'firebase/auth'
33
import { VueFireAuthServer } from 'vuefire/server'
44
import { UserSymbol } from '../admin/plugin-auth-user.server'
55
import { defineNuxtPlugin } from '#app'
6+
import { log } from '../../logging'
67

78
/**
89
* Setups the auth state based on the cookie.
@@ -12,6 +13,8 @@ export default defineNuxtPlugin((nuxtApp) => {
1213
// @ts-expect-error: this is a private symbol
1314
const user = nuxtApp[UserSymbol] as User | undefined | null
1415

16+
log('setting up user for app', firebaseApp.name, user?.uid)
17+
1518
// provide the user data to the app during ssr
1619
VueFireAuthServer(firebaseApp, nuxtApp.vueApp, user)
1720
})

0 commit comments

Comments
 (0)