@meistrari/auth-nuxt 1.0.1 → 1.0.2
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
|
@@ -9,14 +9,66 @@ export type FullOrganizationWithRelations = FullOrganization & {
|
|
|
9
9
|
* This module provides access to session-related state without creating circular dependencies.
|
|
10
10
|
*/
|
|
11
11
|
export declare function useSessionState(): {
|
|
12
|
-
user: import("vue").Ref<
|
|
13
|
-
|
|
12
|
+
user: import("vue").Ref<{
|
|
13
|
+
id: string;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
email: string;
|
|
17
|
+
emailVerified: boolean;
|
|
18
|
+
name: string;
|
|
19
|
+
image?: string | null | undefined;
|
|
20
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
21
|
+
banned: boolean | null | undefined;
|
|
22
|
+
role?: string | null | undefined;
|
|
23
|
+
banReason?: string | null | undefined;
|
|
24
|
+
banExpires?: Date | null | undefined;
|
|
25
|
+
lastActiveAt?: Date | null | undefined;
|
|
26
|
+
} | null, {
|
|
27
|
+
id: string;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
email: string;
|
|
31
|
+
emailVerified: boolean;
|
|
32
|
+
name: string;
|
|
33
|
+
image?: string | null | undefined;
|
|
34
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
35
|
+
banned: boolean | null | undefined;
|
|
36
|
+
role?: string | null | undefined;
|
|
37
|
+
banReason?: string | null | undefined;
|
|
38
|
+
banExpires?: Date | null | undefined;
|
|
39
|
+
lastActiveAt?: Date | null | undefined;
|
|
40
|
+
} | null>;
|
|
41
|
+
session: import("vue").Ref<{
|
|
42
|
+
id: string;
|
|
43
|
+
createdAt: Date;
|
|
44
|
+
updatedAt: Date;
|
|
45
|
+
userId: string;
|
|
46
|
+
expiresAt: Date;
|
|
47
|
+
token: string;
|
|
48
|
+
ipAddress?: string | null | undefined;
|
|
49
|
+
userAgent?: string | null | undefined;
|
|
50
|
+
activeOrganizationId?: string | null | undefined;
|
|
51
|
+
activeTeamId?: string | null | undefined;
|
|
52
|
+
impersonatedBy?: string | null | undefined;
|
|
53
|
+
} | null, {
|
|
54
|
+
id: string;
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
updatedAt: Date;
|
|
57
|
+
userId: string;
|
|
58
|
+
expiresAt: Date;
|
|
59
|
+
token: string;
|
|
60
|
+
ipAddress?: string | null | undefined;
|
|
61
|
+
userAgent?: string | null | undefined;
|
|
62
|
+
activeOrganizationId?: string | null | undefined;
|
|
63
|
+
activeTeamId?: string | null | undefined;
|
|
64
|
+
impersonatedBy?: string | null | undefined;
|
|
65
|
+
} | null>;
|
|
14
66
|
};
|
|
15
67
|
/**
|
|
16
68
|
* Shared state for organization management.
|
|
17
69
|
* This module provides access to organization-related state without creating circular dependencies.
|
|
18
70
|
*/
|
|
19
71
|
export declare function useOrganizationState(): {
|
|
20
|
-
activeOrganization: import("vue").Ref<
|
|
21
|
-
activeMember: import("vue").Ref<
|
|
72
|
+
activeOrganization: import("vue").Ref<FullOrganizationWithRelations | null, FullOrganizationWithRelations | null>;
|
|
73
|
+
activeMember: import("vue").Ref<Member | null, Member | null>;
|
|
22
74
|
};
|
package/dist/runtime/shared.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { AuthClient } from '@meistrari/auth-core';
|
|
2
|
+
export declare function createNuxtAuthClient(apiUrl: string, getAuthToken: () => string | null): AuthClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meistrari/auth-nuxt",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@meistrari/auth-core": "1.4.
|
|
34
|
+
"@meistrari/auth-core": "1.4.6"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"nuxt": "^3.0.0 || ^4.0.0"
|