nuxt-auth-utils 0.0.11 → 0.0.12

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "auth-utils",
3
3
  "configKey": "auth",
4
- "version": "0.0.11"
4
+ "version": "0.0.12"
5
5
  }
@@ -2,6 +2,6 @@ import { eventHandler } from "h3";
2
2
  import { requireUserSession, sessionHooks } from "../utils/session.mjs";
3
3
  export default eventHandler(async (event) => {
4
4
  const session = await requireUserSession(event);
5
- await sessionHooks.callHookParallel("verify", event, session);
5
+ await sessionHooks.callHookParallel("verify", session, event);
6
6
  return session;
7
7
  });
@@ -13,7 +13,7 @@ export async function setUserSession(event, data) {
13
13
  }
14
14
  export async function clearUserSession(event) {
15
15
  const session = await _useSession(event);
16
- await sessionHooks.callHookParallel("clear", event, session);
16
+ await sessionHooks.callHookParallel("clear", session.data, event);
17
17
  await session.clear();
18
18
  return true;
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-auth-utils",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Minimalist Auth module for Nuxt with SSR",
5
5
  "repository": "Atinux/nuxt-auth-utils",
6
6
  "license": "MIT",