From 5bf27496c875b2f56274cbbd6b55376bae25074c Mon Sep 17 00:00:00 2001 From: mktcode Date: Fri, 7 Feb 2025 14:36:23 +0100 Subject: [PATCH 1/2] docs: Wrong var name in README.md (#345) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d781840..52a1033 100644 --- a/README.md +++ b/README.md @@ -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' }) } From 05db8f05352c544c2b00514e6b83239f8d9dde98 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 7 Feb 2025 14:37:06 +0100 Subject: [PATCH 2/2] chore: align @simplewebauthn/types version (#344) --- package.json | 2 +- pnpm-lock.yaml | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index d9088a7..897eaa1 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e11f52..0d42682 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -82,8 +82,8 @@ importers: specifier: ^1.7.0 version: 1.7.0(change-case@5.4.4)(magicast@0.3.5)(rollup@3.29.4)(typescript@5.6.3)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.13(typescript@5.6.3)) '@simplewebauthn/types': - specifier: ^12.0.0 - version: 12.0.0 + specifier: ^11.0.0 + version: 11.0.0 changelogen: specifier: ^0.5.7 version: 0.5.7(magicast@0.3.5) @@ -1702,9 +1702,6 @@ packages: '@simplewebauthn/types@11.0.0': resolution: {integrity: sha512-b2o0wC5u2rWts31dTgBkAtSNKGX0cvL6h8QedNsKmj8O4QoLFQFR3DBVBUlpyVEhYKA+mXGUaXbcOc4JdQ3HzA==} - '@simplewebauthn/types@12.0.0': - resolution: {integrity: sha512-q6y8MkoV8V8jB4zzp18Uyj2I7oFp2/ONL8c3j8uT06AOWu3cIChc1au71QYHrP2b+xDapkGTiv+9lX7xkTlAsA==} - '@sindresorhus/merge-streams@2.3.0': resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==} engines: {node: '>=18'} @@ -7763,8 +7760,6 @@ snapshots: '@simplewebauthn/types@11.0.0': {} - '@simplewebauthn/types@12.0.0': {} - '@sindresorhus/merge-streams@2.3.0': {} '@sindresorhus/merge-streams@4.0.0': {}