Skip to content

Commit 5bf2749

Browse files
authored
docs: Wrong var name in README.md (#345)
1 parent 91a8ae1 commit 5bf2749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export default defineWebAuthnRegisterEventHandler({
393393
// We first check if the user is already authenticated by getting the session
394394
// And verify that the email is the same as the one in session
395395
const session = await getUserSession(event)
396-
if (session.user?.email && session.user.email !== body.userName) {
396+
if (session.user?.email && session.user.email !== userBody.userName) {
397397
throw createError({ statusCode: 400, message: 'Email not matching curent session' })
398398
}
399399

0 commit comments

Comments
 (0)