nuxt-auth-utils 0.3.8 → 0.3.9

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
@@ -156,6 +156,10 @@ declare module '#auth-utils' {
156
156
  interface UserSession {
157
157
  // Add your own fields
158
158
  }
159
+
160
+ interface SecureSessionData {
161
+ // Add your own fields
162
+ }
159
163
  }
160
164
 
161
165
  export {}
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "auth-utils",
3
3
  "configKey": "auth",
4
- "version": "0.3.8",
4
+ "version": "0.3.9",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -1,2 +1,2 @@
1
- declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
1
+ declare const _default: any;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
1
+ declare const _default: any;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- export type { User, UserSession, UserSessionRequired, UserSessionComposable } from './session.js';
1
+ export type { User, UserSession, UserSessionRequired, UserSessionComposable, SecureSessionData } from './session.js';
2
2
  export type { OAuthConfig, OAuthProvider, OnError } from './oauth-config.js';
@@ -1,6 +1,8 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
2
  export interface User {
3
3
  }
4
+ export interface SecureSessionData {
5
+ }
4
6
  export interface UserSession {
5
7
  /**
6
8
  * User session data, available on client and server
@@ -9,7 +11,7 @@ export interface UserSession {
9
11
  /**
10
12
  * Private session data, only available on server/ code
11
13
  */
12
- secure?: Record<string, unknown>;
14
+ secure?: SecureSessionData;
13
15
  /**
14
16
  * Extra session data, available on client and server
15
17
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-auth-utils",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Minimalist Auth module for Nuxt with SSR",
5
5
  "repository": "Atinux/nuxt-auth-utils",
6
6
  "license": "MIT",
@@ -32,29 +32,29 @@
32
32
  "test:watch": "vitest watch"
33
33
  },
34
34
  "dependencies": {
35
- "@nuxt/kit": "^3.13.1",
35
+ "@nuxt/kit": "^3.13.2",
36
36
  "defu": "^6.1.4",
37
37
  "hookable": "^5.5.3",
38
38
  "ofetch": "^1.3.4",
39
- "ohash": "^1.1.3",
39
+ "ohash": "^1.1.4",
40
40
  "pathe": "^1.1.2",
41
41
  "scule": "^1.3.0",
42
42
  "uncrypto": "^0.1.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@iconify-json/simple-icons": "^1.2.2",
45
+ "@iconify-json/simple-icons": "^1.2.3",
46
46
  "@nuxt/devtools": "latest",
47
47
  "@nuxt/eslint-config": "^0.5.7",
48
48
  "@nuxt/module-builder": "^0.8.4",
49
- "@nuxt/schema": "^3.13.1",
49
+ "@nuxt/schema": "^3.13.2",
50
50
  "@nuxt/test-utils": "^3.14.2",
51
- "@nuxt/ui": "^2.18.4",
51
+ "@nuxt/ui": "^2.18.5",
52
52
  "@nuxt/ui-pro": "^1.4.2",
53
- "changelogen": "^0.5.5",
53
+ "changelogen": "^0.5.7",
54
54
  "eslint": "^9.10.0",
55
- "nuxt": "^3.13.1",
55
+ "nuxt": "^3.13.2",
56
56
  "typescript": "^5.6.2",
57
- "vitest": "^2.0.5",
57
+ "vitest": "^2.1.1",
58
58
  "vue-tsc": "^2.1.6"
59
59
  }
60
60
  }