@meistrari/auth-nuxt 3.31.2 → 4.2.0
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
|
@@ -233,9 +233,10 @@ export interface UseTelaAdminReturn {
|
|
|
233
233
|
/**
|
|
234
234
|
* Invites several users to an organization in one call, or — with
|
|
235
235
|
* `sendInvite: false` — adds them as members immediately, creating user
|
|
236
|
-
* accounts as needed
|
|
236
|
+
* accounts as needed (optionally with an initial password for accounts
|
|
237
|
+
* that have none). Failures are isolated per email in the results
|
|
237
238
|
* payload.
|
|
238
|
-
* @param options - Organization, emails, role, and optional teams/application
|
|
239
|
+
* @param options - Organization, emails, role, and optional teams/application/password
|
|
239
240
|
*/
|
|
240
241
|
inviteOrganizationUsers: (options: InviteAdminOrganizationUsersOptions) => Promise<InviteAdminOrganizationUsersResult>;
|
|
241
242
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Session, SignInWithEmailAndPasswordOptions, SignInWithSamlOptions, SocialSignInOptions, User } from '@meistrari/auth-core';
|
|
1
|
+
import type { LoginMethod, Session, SignInWithEmailAndPasswordOptions, SignInWithSamlOptions, SocialSignInOptions, User } from '@meistrari/auth-core';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
3
|
export interface UseTelaSessionReturn {
|
|
4
4
|
/** Reactive reference to the current user. Null if not authenticated. */
|
|
@@ -23,6 +23,10 @@ export interface UseTelaSessionReturn {
|
|
|
23
23
|
* @param options - Email/password sign-in configuration
|
|
24
24
|
*/
|
|
25
25
|
signInWithEmailAndPassword: (options: SignInWithEmailAndPasswordOptions) => Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Lists the login methods enabled in the environment. Public; usable before authentication.
|
|
28
|
+
*/
|
|
29
|
+
getLoginMethods: () => Promise<LoginMethod[]>;
|
|
26
30
|
/**
|
|
27
31
|
* Initiates social authentication flow with Google or Microsoft.
|
|
28
32
|
* @param options - Social sign-in configuration
|
|
@@ -56,6 +56,9 @@ export function useTelaSession() {
|
|
|
56
56
|
callbackURL
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
+
async function getLoginMethods() {
|
|
60
|
+
return await authClient.session.getLoginMethods();
|
|
61
|
+
}
|
|
59
62
|
async function requestPasswordReset(email, callbackURL) {
|
|
60
63
|
await authClient.session.requestPasswordReset(email, callbackURL);
|
|
61
64
|
}
|
|
@@ -79,6 +82,7 @@ export function useTelaSession() {
|
|
|
79
82
|
getSession,
|
|
80
83
|
getToken,
|
|
81
84
|
signInWithEmailAndPassword,
|
|
85
|
+
getLoginMethods,
|
|
82
86
|
signInWithSocialProvider,
|
|
83
87
|
signInWithSaml,
|
|
84
88
|
signOut,
|
package/package.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"name": "@meistrari/auth-nuxt",
|
|
3
|
+
"version": "4.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/types.d.mts",
|
|
8
|
+
"import": "./dist/module.mjs"
|
|
9
|
+
},
|
|
10
|
+
"./server/middleware/auth": {
|
|
11
|
+
"types": "./dist/runtime/server/middleware/auth.d.ts",
|
|
12
|
+
"import": "./dist/runtime/server/middleware/auth.js"
|
|
13
|
+
},
|
|
14
|
+
"./server/middleware/application-auth": {
|
|
15
|
+
"types": "./dist/runtime/server/middleware/application-auth.d.ts",
|
|
16
|
+
"import": "./dist/runtime/server/middleware/application-auth.js"
|
|
17
|
+
},
|
|
18
|
+
"./core": {
|
|
19
|
+
"types": "./dist/core.d.mts",
|
|
20
|
+
"import": "./dist/core.mjs"
|
|
21
|
+
}
|
|
9
22
|
},
|
|
10
|
-
"./
|
|
11
|
-
|
|
12
|
-
|
|
23
|
+
"main": "./dist/module.mjs",
|
|
24
|
+
"typesVersions": {
|
|
25
|
+
"*": {
|
|
26
|
+
".": [
|
|
27
|
+
"./dist/types.d.mts"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
13
30
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
31
|
+
"files": [
|
|
32
|
+
"dist"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build",
|
|
36
|
+
"docs": "nuxt-module-build prepare && typedoc"
|
|
17
37
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@meistrari/auth-core": "1.43.0",
|
|
40
|
+
"jose": "6.1.3"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"nuxt": "^3.10.0 || ^4.0.0",
|
|
44
|
+
"vue": "^3.0.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@nuxt/devtools": "3.4.1",
|
|
48
|
+
"@nuxt/eslint-config": "1.9.0",
|
|
49
|
+
"@nuxt/kit": "4.0.3",
|
|
50
|
+
"@nuxt/module-builder": "1.0.2",
|
|
51
|
+
"@nuxt/schema": "4.0.3",
|
|
52
|
+
"@nuxt/test-utils": "3.19.2",
|
|
53
|
+
"@types/node": "latest",
|
|
54
|
+
"changelogen": "0.6.2",
|
|
55
|
+
"nuxt": "4.5.2",
|
|
56
|
+
"typescript": "5.9.2",
|
|
57
|
+
"unbuild": "3.6.1",
|
|
58
|
+
"typedoc": "0.28.18",
|
|
59
|
+
"typedoc-plugin-markdown": "4.11.0",
|
|
60
|
+
"vitest": "4.1.11",
|
|
61
|
+
"vue-tsc": "3.0.6"
|
|
29
62
|
}
|
|
30
|
-
},
|
|
31
|
-
"files": [
|
|
32
|
-
"dist"
|
|
33
|
-
],
|
|
34
|
-
"scripts": {
|
|
35
|
-
"build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build",
|
|
36
|
-
"docs": "nuxt-module-build prepare && typedoc"
|
|
37
|
-
},
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@meistrari/auth-core": "1.41.2",
|
|
40
|
-
"jose": "6.1.3"
|
|
41
|
-
},
|
|
42
|
-
"peerDependencies": {
|
|
43
|
-
"nuxt": "^3.10.0 || ^4.0.0",
|
|
44
|
-
"vue": "^3.0.0"
|
|
45
|
-
},
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"@nuxt/devtools": "3.4.1",
|
|
48
|
-
"@nuxt/eslint-config": "1.9.0",
|
|
49
|
-
"@nuxt/kit": "4.0.3",
|
|
50
|
-
"@nuxt/module-builder": "1.0.2",
|
|
51
|
-
"@nuxt/schema": "4.0.3",
|
|
52
|
-
"@nuxt/test-utils": "3.19.2",
|
|
53
|
-
"@types/node": "latest",
|
|
54
|
-
"changelogen": "0.6.2",
|
|
55
|
-
"nuxt": "4.5.2",
|
|
56
|
-
"typescript": "5.9.2",
|
|
57
|
-
"unbuild": "3.6.1",
|
|
58
|
-
"typedoc": "0.28.18",
|
|
59
|
-
"typedoc-plugin-markdown": "4.11.0",
|
|
60
|
-
"vitest": "4.1.11",
|
|
61
|
-
"vue-tsc": "3.0.6"
|
|
62
|
-
}
|
|
63
63
|
}
|