nuxt-auth-utils 0.5.14 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -393,7 +393,7 @@ export default defineWebAuthnRegisterEventHandler({
|
|
|
393
393
|
// We first check if the user is already authenticated by getting the session
|
|
394
394
|
// And verify that the email is the same as the one in session
|
|
395
395
|
const session = await getUserSession(event)
|
|
396
|
-
if (session.user?.email && session.user.email !==
|
|
396
|
+
if (session.user?.email && session.user.email !== userBody.userName) {
|
|
397
397
|
throw createError({ statusCode: 400, message: 'Email not matching curent session' })
|
|
398
398
|
}
|
|
399
399
|
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-auth-utils",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.15",
|
|
4
4
|
"description": "Add Authentication to Nuxt applications with secured & sealed cookies sessions.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@nuxt/test-utils": "^3.15.4",
|
|
78
78
|
"@nuxt/ui": "^2.21.0",
|
|
79
79
|
"@nuxt/ui-pro": "^1.7.0",
|
|
80
|
-
"@simplewebauthn/types": "^
|
|
80
|
+
"@simplewebauthn/types": "^11.0.0",
|
|
81
81
|
"changelogen": "^0.5.7",
|
|
82
82
|
"eslint": "^9.19.0",
|
|
83
83
|
"nuxt": "^3.15.4",
|