Skip to content

Commit

Permalink
docs: Wrong var name in README.md (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
mktcode authored Feb 7, 2025
1 parent 91a8ae1 commit 5bf2749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export default defineWebAuthnRegisterEventHandler({
// We first check if the user is already authenticated by getting the session
// And verify that the email is the same as the one in session
const session = await getUserSession(event)
if (session.user?.email && session.user.email !== body.userName) {
if (session.user?.email && session.user.email !== userBody.userName) {
throw createError({ statusCode: 400, message: 'Email not matching curent session' })
}

Expand Down

0 comments on commit 5bf2749

Please sign in to comment.