Skip to content

Commit

Permalink
Merge branch 'atinux:main' into feature/add-server-side-session-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-hofmann authored Feb 7, 2025
2 parents 78507a0 + 05db8f0 commit f240408
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@nuxt/test-utils": "^3.15.4",
"@nuxt/ui": "^2.21.0",
"@nuxt/ui-pro": "^1.7.0",
"@simplewebauthn/types": "^12.0.0",
"@simplewebauthn/types": "^11.0.0",
"changelogen": "^0.5.7",
"eslint": "^9.19.0",
"nuxt": "^3.15.4",
Expand Down
9 changes: 2 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f240408

Please sign in to comment.