@meistrari/auth-nuxt 3.13.0 → 3.13.1
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
|
@@ -7,7 +7,7 @@ A Nuxt module for authentication, organization management, and API key capabilit
|
|
|
7
7
|
This SDK supports two authentication models:
|
|
8
8
|
|
|
9
9
|
- **Application Authentication (recommended)**: Use this for product applications that need end-user authentication and authorization scoped to a specific application. See [Application Authentication Guide](./docs/APPLICATION_AUTH.md).
|
|
10
|
-
- **First-Party Authentication**: Use this only for trusted first-party tools that interact directly with the Auth API in an administrative way, such as the
|
|
10
|
+
- **First-Party Authentication**: Use this only for trusted first-party tools that interact directly with the Auth API in an administrative way, such as the Accounts Dashboard and Backoffice. See [First-Party Authentication Guide](./docs/FIRST_PARTY_AUTH.md).
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
package/dist/module.d.mts
CHANGED
|
@@ -33,7 +33,7 @@ interface ModuleOptions {
|
|
|
33
33
|
application?: {
|
|
34
34
|
/** Whether to enable application authentication */
|
|
35
35
|
enabled: boolean;
|
|
36
|
-
/**
|
|
36
|
+
/** Accounts Dashboard URL */
|
|
37
37
|
dashboardUrl: string;
|
|
38
38
|
/** The ID of the application to authenticate with */
|
|
39
39
|
applicationId: string;
|
package/dist/module.json
CHANGED
|
@@ -10,7 +10,7 @@ export interface UseTelaApplicationAuthReturn {
|
|
|
10
10
|
*
|
|
11
11
|
* Calls the server route to generate state and challenge. The server stores the
|
|
12
12
|
* verifier securely and returns only the challenge and state to the client.
|
|
13
|
-
* Then redirects to the
|
|
13
|
+
* Then redirects to the accounts dashboard login page.
|
|
14
14
|
*
|
|
15
15
|
* @throws {AuthorizationFlowError} If called on the server
|
|
16
16
|
*/
|
|
@@ -87,7 +87,7 @@ export interface UseTelaApplicationAuthReturn {
|
|
|
87
87
|
* from the returned state.
|
|
88
88
|
*
|
|
89
89
|
* @returns An object containing authentication state and methods
|
|
90
|
-
* @throws {Error} If
|
|
90
|
+
* @throws {Error} If accounts dashboard URL is not configured
|
|
91
91
|
*
|
|
92
92
|
* @example
|
|
93
93
|
* ```ts
|
|
@@ -15,7 +15,7 @@ export function useTelaApplicationAuth() {
|
|
|
15
15
|
const state = useApplicationSessionState();
|
|
16
16
|
if (!appConfig.application?.dashboardUrl) {
|
|
17
17
|
throw new Error(
|
|
18
|
-
"[Tela Auth SDK]
|
|
18
|
+
"[Tela Auth SDK] Accounts dashboard URL is not configured, but it is required to use application authentication."
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
21
|
if (!appConfig.application?.applicationId) {
|