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'
15
15
*/
16
16
export default defineEventHandler ( async ( event ) => {
17
17
assertMethod ( event , 'POST' )
18
- const { token } = await readBody ( event )
18
+ const { token } = await readBody < { token ?: string } > ( event )
19
19
20
20
log ( 'debug' , 'Getting the admin app' )
21
- const adminApp = getAdminApp ( )
21
+ const adminApp = getAdminApp ( { } , 'session-verification' )
22
22
const adminAuth = getAdminAuth ( adminApp )
23
23
24
- // log('debug', 'read idToken from Authorization header', token)
24
+ log ( 'debug' , 'read idToken from Authorization header' , token )
25
25
const verifiedIdToken = token ? await adminAuth . verifyIdToken ( token ) : null
26
26
27
27
if ( verifiedIdToken ) {
You can’t perform that action at this time.
0 commit comments