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 !== body.userName) {
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "auth-utils",
3
3
  "configKey": "auth",
4
- "version": "0.5.14",
4
+ "version": "0.5.15",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -1,4 +1,4 @@
1
- import { defineNuxtPlugin, useUserSession } from "#imports";
1
+ import { defineNuxtPlugin, useUserSession, useError } from "#imports";
2
2
  export default defineNuxtPlugin(async (nuxtApp) => {
3
3
  if (!nuxtApp.payload.serverRendered) {
4
4
  await useUserSession().fetch();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-auth-utils",
3
- "version": "0.5.14",
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": "^12.0.0",
80
+ "@simplewebauthn/types": "^11.0.0",
81
81
  "changelogen": "^0.5.7",
82
82
  "eslint": "^9.19.0",
83
83
  "nuxt": "^3.15.4",