Skip to content

Commit f4b7426

Browse files
committed
types: better
1 parent 6927516 commit f4b7426

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/nuxt/src/runtime/auth/api.session-verification.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import { log } from '../logging'
1515
*/
1616
export 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) {

0 commit comments

Comments
 (0)