Skip to content

Commit e80419e

Browse files
committed
chore: logs
1 parent b82b018 commit e80419e

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

Diff for: packages/nuxt/src/module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export default defineNuxtModule<VueFireNuxtModuleOptions>({
152152
logger
153153
)
154154

155+
// expose the detected emulators to the plugins
155156
nuxt.options.runtimeConfig.public.vuefire ??= {}
156157
nuxt.options.runtimeConfig.public.vuefire.emulators = emulators
157158

@@ -180,7 +181,6 @@ export default defineNuxtModule<VueFireNuxtModuleOptions>({
180181
)
181182
}
182183

183-
// TODO: add with ssr
184184
if (hasServiceAccount) {
185185
if (options.auth) {
186186
// decodes user token from cookie if any

Diff for: packages/nuxt/src/runtime/app/lru-cache.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { deleteApp, type FirebaseApp } from 'firebase/app'
22
import { LRUCache } from 'lru-cache'
3+
import { logger } from '../logging'
34

45
// TODO: allow customizing
56
// TODO: find sensible defaults. Should they change depending on the platform?
@@ -13,6 +14,7 @@ export const appCache = new LRUCache<string, FirebaseApp>({
1314
allowStale: true,
1415
updateAgeOnGet: true,
1516
dispose: (value) => {
17+
logger.debug('Disposing app', value.name)
1618
deleteApp(value)
1719
},
1820
})

Diff for: packages/nuxt/src/runtime/app/plugin.server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default defineNuxtPlugin((nuxtApp) => {
3838
logger.debug('👤 reusing authenticated app', firebaseApp.name)
3939
}
4040
} else {
41-
// TODO: is this safe? should we create a new one everytime
41+
// TODO: is this safe? should we create a new one every time
4242
if (!appCache.has('')) {
4343
appCache.set('', initializeApp(appConfig.firebaseConfig))
4444
}

Diff for: src/server/auth.ts

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export async function decodeSessionCookie(
117117
// TODO: should we check for the revoked status of the token here?
118118
// we await to try/catch
119119
// return await adminAuth.verifyIdToken(token /*, checkRevoked */)
120+
logger.debug('Verifying session cookie')
120121
return await adminAuth.verifySessionCookie(
121122
sessionCookie
122123
/** checkRevoked */

0 commit comments

Comments
 (0)