File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/nuxt/src/runtime/auth Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ import { log } from '../logging'
1515 */
1616export default defineEventHandler ( async ( event ) => {
1717 assertMethod ( event , 'POST' )
18- const { token } = await readBody ( event )
18+ const { token } = await readBody < { token ?: string } > ( event )
1919
2020 log ( 'debug' , 'Getting the admin app' )
21- const adminApp = getAdminApp ( )
21+ const adminApp = getAdminApp ( { } , 'session-verification' )
2222 const adminAuth = getAdminAuth ( adminApp )
2323
24- // log('debug', 'read idToken from Authorization header', token)
24+ log ( 'debug' , 'read idToken from Authorization header' , token )
2525 const verifiedIdToken = token ? await adminAuth . verifyIdToken ( token ) : null
2626
2727 if ( verifiedIdToken ) {
You can’t perform that action at this time.
0 commit comments