We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91a8ae1 commit 5bf2749Copy full SHA for 5bf2749
README.md
@@ -393,7 +393,7 @@ export default defineWebAuthnRegisterEventHandler({
393
// We first check if the user is already authenticated by getting the session
394
// And verify that the email is the same as the one in session
395
const session = await getUserSession(event)
396
- if (session.user?.email && session.user.email !== body.userName) {
+ if (session.user?.email && session.user.email !== userBody.userName) {
397
throw createError({ statusCode: 400, message: 'Email not matching curent session' })
398
}
399
0 commit comments