@meistrari/auth-nuxt 3.0.1 → 3.0.3
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.d.mts +3 -3
- package/dist/module.json +1 -1
- package/dist/runtime/composables/application-auth.d.ts +2 -31
- package/dist/runtime/composables/state.d.ts +6 -147
- package/dist/runtime/server/routes/auth/organizations.d.ts +1 -1
- package/dist/runtime/server/routes/auth/refresh.d.ts +2 -16
- package/dist/runtime/server/routes/auth/switch-organization.d.ts +2 -16
- package/dist/runtime/server/routes/auth/whoami.d.ts +2 -16
- package/dist/runtime/shared.d.ts +1 -2
- package/package.json +7 -7
package/dist/module.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { NuxtModule } from '@nuxt/schema';
|
|
2
2
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
4
|
/** Auth API base URL */
|
|
@@ -22,7 +22,7 @@ interface ModuleOptions {
|
|
|
22
22
|
unauthorizedPath?: string;
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
declare const
|
|
25
|
+
declare const module$1: NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
26
26
|
|
|
27
|
-
export {
|
|
27
|
+
export { module$1 as default };
|
|
28
28
|
export type { ModuleOptions };
|
package/dist/module.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { FullOrganization } from '@meistrari/auth-core';
|
|
2
1
|
/**
|
|
3
2
|
* Composable for managing Tela application authentication with OAuth 2.0 PKCE flow
|
|
4
3
|
*
|
|
@@ -41,34 +40,6 @@ export declare function useTelaApplicationAuth(): {
|
|
|
41
40
|
switchOrganization: (organizationId: string) => Promise<void>;
|
|
42
41
|
refreshToken: () => Promise<void>;
|
|
43
42
|
getToken: () => Promise<string | null | undefined>;
|
|
44
|
-
user: import("vue").Ref<
|
|
45
|
-
|
|
46
|
-
createdAt: Date;
|
|
47
|
-
updatedAt: Date;
|
|
48
|
-
email: string;
|
|
49
|
-
emailVerified: boolean;
|
|
50
|
-
name: string;
|
|
51
|
-
image?: string | null | undefined;
|
|
52
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
53
|
-
banned: boolean | null | undefined;
|
|
54
|
-
role?: string | null | undefined;
|
|
55
|
-
banReason?: string | null | undefined;
|
|
56
|
-
banExpires?: Date | null | undefined;
|
|
57
|
-
lastActiveAt?: Date | null | undefined;
|
|
58
|
-
} | null, {
|
|
59
|
-
id: string;
|
|
60
|
-
createdAt: Date;
|
|
61
|
-
updatedAt: Date;
|
|
62
|
-
email: string;
|
|
63
|
-
emailVerified: boolean;
|
|
64
|
-
name: string;
|
|
65
|
-
image?: string | null | undefined;
|
|
66
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
67
|
-
banned: boolean | null | undefined;
|
|
68
|
-
role?: string | null | undefined;
|
|
69
|
-
banReason?: string | null | undefined;
|
|
70
|
-
banExpires?: Date | null | undefined;
|
|
71
|
-
lastActiveAt?: Date | null | undefined;
|
|
72
|
-
} | null>;
|
|
73
|
-
activeOrganization: import("vue").Ref<FullOrganization | null, FullOrganization | null>;
|
|
43
|
+
user: import("vue").Ref<any, any>;
|
|
44
|
+
activeOrganization: import("vue").Ref<any, any>;
|
|
74
45
|
};
|
|
@@ -1,161 +1,20 @@
|
|
|
1
|
-
import type { FullOrganization } from '@meistrari/auth-core';
|
|
2
1
|
/**
|
|
3
2
|
* Shared state for session management.
|
|
4
3
|
* This module provides access to session-related state without creating circular dependencies.
|
|
5
4
|
*/
|
|
6
5
|
export declare function useSessionState(): {
|
|
7
|
-
user: import("vue").Ref<
|
|
8
|
-
|
|
9
|
-
createdAt: Date;
|
|
10
|
-
updatedAt: Date;
|
|
11
|
-
email: string;
|
|
12
|
-
emailVerified: boolean;
|
|
13
|
-
name: string;
|
|
14
|
-
image?: string | null | undefined;
|
|
15
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
16
|
-
banned: boolean | null | undefined;
|
|
17
|
-
role?: string | null | undefined;
|
|
18
|
-
banReason?: string | null | undefined;
|
|
19
|
-
banExpires?: Date | null | undefined;
|
|
20
|
-
lastActiveAt?: Date | null | undefined;
|
|
21
|
-
} | null, {
|
|
22
|
-
id: string;
|
|
23
|
-
createdAt: Date;
|
|
24
|
-
updatedAt: Date;
|
|
25
|
-
email: string;
|
|
26
|
-
emailVerified: boolean;
|
|
27
|
-
name: string;
|
|
28
|
-
image?: string | null | undefined;
|
|
29
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
30
|
-
banned: boolean | null | undefined;
|
|
31
|
-
role?: string | null | undefined;
|
|
32
|
-
banReason?: string | null | undefined;
|
|
33
|
-
banExpires?: Date | null | undefined;
|
|
34
|
-
lastActiveAt?: Date | null | undefined;
|
|
35
|
-
} | null>;
|
|
36
|
-
session: import("vue").Ref<{
|
|
37
|
-
user: {
|
|
38
|
-
id: string;
|
|
39
|
-
createdAt: Date;
|
|
40
|
-
updatedAt: Date;
|
|
41
|
-
email: string;
|
|
42
|
-
emailVerified: boolean;
|
|
43
|
-
name: string;
|
|
44
|
-
image?: string | null | undefined;
|
|
45
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
46
|
-
banned: boolean | null | undefined;
|
|
47
|
-
role?: string | null | undefined;
|
|
48
|
-
banReason?: string | null | undefined;
|
|
49
|
-
banExpires?: Date | null | undefined;
|
|
50
|
-
lastActiveAt?: Date | null | undefined;
|
|
51
|
-
};
|
|
52
|
-
session: {
|
|
53
|
-
id: string;
|
|
54
|
-
createdAt: Date;
|
|
55
|
-
updatedAt: Date;
|
|
56
|
-
userId: string;
|
|
57
|
-
expiresAt: Date;
|
|
58
|
-
token: string;
|
|
59
|
-
ipAddress?: string | null | undefined;
|
|
60
|
-
userAgent?: string | null | undefined;
|
|
61
|
-
activeOrganizationId?: string | null | undefined;
|
|
62
|
-
activeTeamId?: string | null | undefined;
|
|
63
|
-
impersonatedBy?: string | null | undefined;
|
|
64
|
-
};
|
|
65
|
-
} | null, {
|
|
66
|
-
user: {
|
|
67
|
-
id: string;
|
|
68
|
-
createdAt: Date;
|
|
69
|
-
updatedAt: Date;
|
|
70
|
-
email: string;
|
|
71
|
-
emailVerified: boolean;
|
|
72
|
-
name: string;
|
|
73
|
-
image?: string | null | undefined;
|
|
74
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
75
|
-
banned: boolean | null | undefined;
|
|
76
|
-
role?: string | null | undefined;
|
|
77
|
-
banReason?: string | null | undefined;
|
|
78
|
-
banExpires?: Date | null | undefined;
|
|
79
|
-
lastActiveAt?: Date | null | undefined;
|
|
80
|
-
};
|
|
81
|
-
session: {
|
|
82
|
-
id: string;
|
|
83
|
-
createdAt: Date;
|
|
84
|
-
updatedAt: Date;
|
|
85
|
-
userId: string;
|
|
86
|
-
expiresAt: Date;
|
|
87
|
-
token: string;
|
|
88
|
-
ipAddress?: string | null | undefined;
|
|
89
|
-
userAgent?: string | null | undefined;
|
|
90
|
-
activeOrganizationId?: string | null | undefined;
|
|
91
|
-
activeTeamId?: string | null | undefined;
|
|
92
|
-
impersonatedBy?: string | null | undefined;
|
|
93
|
-
};
|
|
94
|
-
} | null>;
|
|
6
|
+
user: import("vue").Ref<any, any>;
|
|
7
|
+
session: import("vue").Ref<any, any>;
|
|
95
8
|
};
|
|
96
9
|
/**
|
|
97
10
|
* Shared state for organization management.
|
|
98
11
|
* This module provides access to organization-related state without creating circular dependencies.
|
|
99
12
|
*/
|
|
100
13
|
export declare function useOrganizationState(): {
|
|
101
|
-
activeOrganization: import("vue").Ref<
|
|
102
|
-
activeMember: import("vue").Ref<
|
|
103
|
-
id: string;
|
|
104
|
-
organizationId: string;
|
|
105
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
106
|
-
createdAt: Date;
|
|
107
|
-
userId: string;
|
|
108
|
-
teamId?: string | undefined | undefined | undefined;
|
|
109
|
-
user: {
|
|
110
|
-
id: string;
|
|
111
|
-
email: string;
|
|
112
|
-
name: string;
|
|
113
|
-
image?: string | undefined;
|
|
114
|
-
};
|
|
115
|
-
} | null, {
|
|
116
|
-
id: string;
|
|
117
|
-
organizationId: string;
|
|
118
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
119
|
-
createdAt: Date;
|
|
120
|
-
userId: string;
|
|
121
|
-
teamId?: string | undefined | undefined | undefined;
|
|
122
|
-
user: {
|
|
123
|
-
id: string;
|
|
124
|
-
email: string;
|
|
125
|
-
name: string;
|
|
126
|
-
image?: string | undefined;
|
|
127
|
-
};
|
|
128
|
-
} | null>;
|
|
14
|
+
activeOrganization: import("vue").Ref<any, any>;
|
|
15
|
+
activeMember: import("vue").Ref<any, any>;
|
|
129
16
|
};
|
|
130
17
|
export declare function useApplicationSessionState(): {
|
|
131
|
-
user: import("vue").Ref<
|
|
132
|
-
|
|
133
|
-
createdAt: Date;
|
|
134
|
-
updatedAt: Date;
|
|
135
|
-
email: string;
|
|
136
|
-
emailVerified: boolean;
|
|
137
|
-
name: string;
|
|
138
|
-
image?: string | null | undefined;
|
|
139
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
140
|
-
banned: boolean | null | undefined;
|
|
141
|
-
role?: string | null | undefined;
|
|
142
|
-
banReason?: string | null | undefined;
|
|
143
|
-
banExpires?: Date | null | undefined;
|
|
144
|
-
lastActiveAt?: Date | null | undefined;
|
|
145
|
-
} | null, {
|
|
146
|
-
id: string;
|
|
147
|
-
createdAt: Date;
|
|
148
|
-
updatedAt: Date;
|
|
149
|
-
email: string;
|
|
150
|
-
emailVerified: boolean;
|
|
151
|
-
name: string;
|
|
152
|
-
image?: string | null | undefined;
|
|
153
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
154
|
-
banned: boolean | null | undefined;
|
|
155
|
-
role?: string | null | undefined;
|
|
156
|
-
banReason?: string | null | undefined;
|
|
157
|
-
banExpires?: Date | null | undefined;
|
|
158
|
-
lastActiveAt?: Date | null | undefined;
|
|
159
|
-
} | null>;
|
|
160
|
-
activeOrganization: import("vue").Ref<FullOrganization | null, FullOrganization | null>;
|
|
18
|
+
user: import("vue").Ref<any, any>;
|
|
19
|
+
activeOrganization: import("vue").Ref<any, any>;
|
|
161
20
|
};
|
|
@@ -11,21 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
|
|
13
13
|
success: boolean;
|
|
14
|
-
user:
|
|
15
|
-
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
updatedAt: Date;
|
|
18
|
-
email: string;
|
|
19
|
-
emailVerified: boolean;
|
|
20
|
-
name: string;
|
|
21
|
-
image?: string | null | undefined;
|
|
22
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
23
|
-
banned: boolean | null | undefined;
|
|
24
|
-
role?: string | null | undefined;
|
|
25
|
-
banReason?: string | null | undefined;
|
|
26
|
-
banExpires?: Date | null | undefined;
|
|
27
|
-
lastActiveAt?: Date | null | undefined;
|
|
28
|
-
};
|
|
29
|
-
organization: import("@meistrari/auth-core").FullOrganization;
|
|
14
|
+
user: any;
|
|
15
|
+
organization: any;
|
|
30
16
|
}>>;
|
|
31
17
|
export default _default;
|
|
@@ -12,21 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
|
|
14
14
|
success: boolean;
|
|
15
|
-
user:
|
|
16
|
-
|
|
17
|
-
createdAt: Date;
|
|
18
|
-
updatedAt: Date;
|
|
19
|
-
email: string;
|
|
20
|
-
emailVerified: boolean;
|
|
21
|
-
name: string;
|
|
22
|
-
image?: string | null | undefined;
|
|
23
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
24
|
-
banned: boolean | null | undefined;
|
|
25
|
-
role?: string | null | undefined;
|
|
26
|
-
banReason?: string | null | undefined;
|
|
27
|
-
banExpires?: Date | null | undefined;
|
|
28
|
-
lastActiveAt?: Date | null | undefined;
|
|
29
|
-
};
|
|
30
|
-
organization: import("@meistrari/auth-core").FullOrganization;
|
|
15
|
+
user: any;
|
|
16
|
+
organization: any;
|
|
31
17
|
}>>;
|
|
32
18
|
export default _default;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
|
|
2
2
|
success: boolean;
|
|
3
|
-
user:
|
|
4
|
-
|
|
5
|
-
createdAt: Date;
|
|
6
|
-
updatedAt: Date;
|
|
7
|
-
email: string;
|
|
8
|
-
emailVerified: boolean;
|
|
9
|
-
name: string;
|
|
10
|
-
image?: string | null | undefined;
|
|
11
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
12
|
-
banned: boolean | null | undefined;
|
|
13
|
-
role?: string | null | undefined;
|
|
14
|
-
banReason?: string | null | undefined;
|
|
15
|
-
banExpires?: Date | null | undefined;
|
|
16
|
-
lastActiveAt?: Date | null | undefined;
|
|
17
|
-
};
|
|
18
|
-
organization: import("@meistrari/auth-core").FullOrganization;
|
|
3
|
+
user: any;
|
|
4
|
+
organization: any;
|
|
19
5
|
}>>;
|
|
20
6
|
export default _default;
|
package/dist/runtime/shared.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function createNuxtAuthClient(apiUrl: string, getAuthToken: () => string | null, getRefreshToken?: () => string | null): AuthClient;
|
|
1
|
+
export declare function createNuxtAuthClient(apiUrl: string, getAuthToken: () => string | null, getRefreshToken?: () => string | null): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meistrari/auth-nuxt",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build"
|
|
32
|
+
},
|
|
30
33
|
"dependencies": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
34
|
+
"@meistrari/auth-core": "workspace:*",
|
|
35
|
+
"jose": "6.1.3"
|
|
33
36
|
},
|
|
34
37
|
"peerDependencies": {
|
|
35
38
|
"nuxt": "^3.0.0 || ^4.0.0",
|
|
@@ -49,8 +52,5 @@
|
|
|
49
52
|
"unbuild": "3.6.1",
|
|
50
53
|
"vitest": "3.2.4",
|
|
51
54
|
"vue-tsc": "3.0.6"
|
|
52
|
-
},
|
|
53
|
-
"scripts": {
|
|
54
|
-
"build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build"
|
|
55
55
|
}
|
|
56
|
-
}
|
|
56
|
+
}
|