authhero 9.24.0 → 9.24.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/dist/authhero.cjs +116 -116
- package/dist/authhero.d.ts +298 -297
- package/dist/authhero.mjs +34211 -33944
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/password.d.ts +6 -0
- package/dist/types/authentication-flows/passwordless.d.ts +5 -5
- package/dist/types/generated/locale-types.d.ts +1 -0
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/session-notice.d.ts +17 -0
- package/dist/types/index.d.ts +298 -297
- package/dist/types/routes/auth-api/index.d.ts +29 -29
- package/dist/types/routes/auth-api/logout.d.ts +2 -2
- package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
- package/dist/types/routes/auth-api/passwordless.d.ts +8 -8
- package/dist/types/routes/auth-api/revoke.d.ts +6 -6
- package/dist/types/routes/auth-api/token.d.ts +10 -10
- package/dist/types/routes/management-api/branding.d.ts +3 -3
- package/dist/types/routes/management-api/clients.d.ts +8 -8
- package/dist/types/routes/management-api/connections.d.ts +7 -7
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/failed-events.d.ts +3 -2
- package/dist/types/routes/management-api/forms.d.ts +144 -144
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/helpers.d.ts +26 -4
- package/dist/types/routes/management-api/index.d.ts +248 -247
- package/dist/types/routes/management-api/keys.d.ts +12 -12
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/organizations.d.ts +1 -1
- package/dist/types/routes/management-api/prompts.d.ts +6 -6
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenants.d.ts +3 -3
- package/dist/types/routes/management-api/users.d.ts +26 -26
- package/dist/types/routes/saml/index.d.ts +6 -6
- package/dist/types/routes/saml/samlp.d.ts +6 -6
- package/dist/types/routes/universal-login/common.d.ts +10 -10
- package/dist/types/routes/universal-login/continue.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/impersonate.d.ts +4 -4
- package/dist/types/routes/universal-login/index.d.ts +8 -8
- package/dist/types/routes/universal-login/screens/account-mfa-phone-enrollment.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/account-mfa-totp-enrollment.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/account-passkeys.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/connect-tenant-select.d.ts +0 -10
- package/dist/types/routes/universal-login/screens/identifier.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/login.d.ts +0 -8
- package/dist/types/routes/universal-login/screens/mfa-login-options.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/mfa-phone-challenge.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/mfa-phone-enrollment.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/mfa-totp-challenge.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/mfa-totp-enrollment.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/passkey-challenge.d.ts +0 -14
- package/dist/types/routes/universal-login/screens/passkey-enrollment-nudge.d.ts +0 -15
- package/dist/types/routes/universal-login/screens/passkey-enrollment.d.ts +0 -9
- package/dist/types/routes/universal-login/screens/reset-password-code.d.ts +0 -9
- package/dist/types/routes/universal-login/screens/reset-password.d.ts +2 -6
- package/dist/types/routes/universal-login/u2-index.d.ts +7 -7
- package/dist/types/routes/universal-login/u2-routes.d.ts +7 -7
- package/dist/types/state-machines/index.d.ts +3 -1
- package/dist/types/state-machines/login-session-data.d.ts +19 -0
- package/dist/types/state-machines/login-session.d.ts +67 -3
- package/dist/types/state-machines/password-reset.d.ts +46 -0
- package/package.json +2 -2
|
@@ -224,7 +224,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
224
224
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
225
225
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
226
226
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
227
|
-
provisioning_state?: "pending" | "
|
|
227
|
+
provisioning_state?: "pending" | "failed" | "ready" | undefined;
|
|
228
228
|
provisioning_error?: string | undefined;
|
|
229
229
|
provisioning_state_changed_at?: string | undefined;
|
|
230
230
|
bundle_configuration?: string | undefined;
|
|
@@ -272,7 +272,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
272
272
|
} | undefined;
|
|
273
273
|
} | undefined;
|
|
274
274
|
mfa?: {
|
|
275
|
-
policy?: "
|
|
275
|
+
policy?: "always" | "never" | undefined;
|
|
276
276
|
factors?: {
|
|
277
277
|
sms: boolean;
|
|
278
278
|
otp: boolean;
|
|
@@ -371,7 +371,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
371
371
|
} | undefined;
|
|
372
372
|
unique?: boolean | undefined;
|
|
373
373
|
profile_required?: boolean | undefined;
|
|
374
|
-
verification_method?: "
|
|
374
|
+
verification_method?: "link" | "code" | undefined;
|
|
375
375
|
} | undefined;
|
|
376
376
|
username?: {
|
|
377
377
|
identifier?: {
|
|
@@ -599,7 +599,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
599
599
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
600
600
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
601
601
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
602
|
-
provisioning_state?: "pending" | "
|
|
602
|
+
provisioning_state?: "pending" | "failed" | "ready" | undefined;
|
|
603
603
|
provisioning_error?: string | undefined;
|
|
604
604
|
provisioning_state_changed_at?: string | undefined;
|
|
605
605
|
bundle_configuration?: string | undefined;
|
|
@@ -647,7 +647,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
647
647
|
} | undefined;
|
|
648
648
|
} | undefined;
|
|
649
649
|
mfa?: {
|
|
650
|
-
policy?: "
|
|
650
|
+
policy?: "always" | "never" | undefined;
|
|
651
651
|
factors?: {
|
|
652
652
|
sms: boolean;
|
|
653
653
|
otp: boolean;
|
|
@@ -960,7 +960,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
960
960
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
961
961
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
962
962
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
963
|
-
provisioning_state?: "pending" | "
|
|
963
|
+
provisioning_state?: "pending" | "failed" | "ready" | undefined;
|
|
964
964
|
provisioning_error?: string | undefined;
|
|
965
965
|
provisioning_state_changed_at?: string | undefined;
|
|
966
966
|
bundle_configuration?: string | undefined;
|
|
@@ -1008,7 +1008,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
1008
1008
|
} | undefined;
|
|
1009
1009
|
} | undefined;
|
|
1010
1010
|
mfa?: {
|
|
1011
|
-
policy?: "
|
|
1011
|
+
policy?: "always" | "never" | undefined;
|
|
1012
1012
|
factors?: {
|
|
1013
1013
|
sms: boolean;
|
|
1014
1014
|
otp: boolean;
|
|
@@ -1107,7 +1107,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
1107
1107
|
} | undefined;
|
|
1108
1108
|
unique?: boolean | undefined;
|
|
1109
1109
|
profile_required?: boolean | undefined;
|
|
1110
|
-
verification_method?: "
|
|
1110
|
+
verification_method?: "link" | "code" | undefined;
|
|
1111
1111
|
} | undefined;
|
|
1112
1112
|
username?: {
|
|
1113
1113
|
identifier?: {
|
|
@@ -1404,7 +1404,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
1404
1404
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
1405
1405
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
1406
1406
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
1407
|
-
provisioning_state?: "pending" | "
|
|
1407
|
+
provisioning_state?: "pending" | "failed" | "ready" | undefined;
|
|
1408
1408
|
provisioning_error?: string | undefined;
|
|
1409
1409
|
provisioning_state_changed_at?: string | undefined;
|
|
1410
1410
|
bundle_configuration?: string | undefined;
|
|
@@ -1452,7 +1452,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
1452
1452
|
} | undefined;
|
|
1453
1453
|
} | undefined;
|
|
1454
1454
|
mfa?: {
|
|
1455
|
-
policy?: "
|
|
1455
|
+
policy?: "always" | "never" | undefined;
|
|
1456
1456
|
factors?: {
|
|
1457
1457
|
sms: boolean;
|
|
1458
1458
|
otp: boolean;
|
|
@@ -13,7 +13,7 @@ export declare const continueRoutes: OpenAPIHono<{
|
|
|
13
13
|
};
|
|
14
14
|
output: {};
|
|
15
15
|
outputFormat: string;
|
|
16
|
-
status:
|
|
16
|
+
status: 302;
|
|
17
17
|
} | {
|
|
18
18
|
input: {
|
|
19
19
|
query: {
|
|
@@ -22,7 +22,7 @@ export declare const continueRoutes: OpenAPIHono<{
|
|
|
22
22
|
};
|
|
23
23
|
output: {};
|
|
24
24
|
outputFormat: string;
|
|
25
|
-
status:
|
|
25
|
+
status: 400;
|
|
26
26
|
} | {
|
|
27
27
|
input: {
|
|
28
28
|
query: {
|
|
@@ -43,7 +43,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
43
43
|
hint?: string | undefined;
|
|
44
44
|
messages?: {
|
|
45
45
|
text: string;
|
|
46
|
-
type: "
|
|
46
|
+
type: "error" | "success" | "info" | "warning";
|
|
47
47
|
id?: number | undefined;
|
|
48
48
|
}[] | undefined;
|
|
49
49
|
}[];
|
|
@@ -51,7 +51,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
51
51
|
description?: string | undefined;
|
|
52
52
|
messages?: {
|
|
53
53
|
text: string;
|
|
54
|
-
type: "
|
|
54
|
+
type: "error" | "success" | "info" | "warning";
|
|
55
55
|
id?: number | undefined;
|
|
56
56
|
}[] | undefined;
|
|
57
57
|
links?: {
|
|
@@ -123,7 +123,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
123
123
|
hint?: string | undefined;
|
|
124
124
|
messages?: {
|
|
125
125
|
text: string;
|
|
126
|
-
type: "
|
|
126
|
+
type: "error" | "success" | "info" | "warning";
|
|
127
127
|
id?: number | undefined;
|
|
128
128
|
}[] | undefined;
|
|
129
129
|
}[];
|
|
@@ -131,7 +131,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
131
131
|
description?: string | undefined;
|
|
132
132
|
messages?: {
|
|
133
133
|
text: string;
|
|
134
|
-
type: "
|
|
134
|
+
type: "error" | "success" | "info" | "warning";
|
|
135
135
|
id?: number | undefined;
|
|
136
136
|
}[] | undefined;
|
|
137
137
|
links?: {
|
|
@@ -220,7 +220,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
220
220
|
hint?: string | undefined;
|
|
221
221
|
messages?: {
|
|
222
222
|
text: string;
|
|
223
|
-
type: "
|
|
223
|
+
type: "error" | "success" | "info" | "warning";
|
|
224
224
|
id?: number | undefined;
|
|
225
225
|
}[] | undefined;
|
|
226
226
|
}[];
|
|
@@ -228,7 +228,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
228
228
|
description?: string | undefined;
|
|
229
229
|
messages?: {
|
|
230
230
|
text: string;
|
|
231
|
-
type: "
|
|
231
|
+
type: "error" | "success" | "info" | "warning";
|
|
232
232
|
id?: number | undefined;
|
|
233
233
|
}[] | undefined;
|
|
234
234
|
links?: {
|
|
@@ -335,7 +335,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
335
335
|
hint?: string | undefined;
|
|
336
336
|
messages?: {
|
|
337
337
|
text: string;
|
|
338
|
-
type: "
|
|
338
|
+
type: "error" | "success" | "info" | "warning";
|
|
339
339
|
id?: number | undefined;
|
|
340
340
|
}[] | undefined;
|
|
341
341
|
}[];
|
|
@@ -343,7 +343,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
343
343
|
description?: string | undefined;
|
|
344
344
|
messages?: {
|
|
345
345
|
text: string;
|
|
346
|
-
type: "
|
|
346
|
+
type: "error" | "success" | "info" | "warning";
|
|
347
347
|
id?: number | undefined;
|
|
348
348
|
}[] | undefined;
|
|
349
349
|
links?: {
|
|
@@ -35,7 +35,7 @@ export declare const identifierRoutes: OpenAPIHono<{
|
|
|
35
35
|
};
|
|
36
36
|
output: {};
|
|
37
37
|
outputFormat: string;
|
|
38
|
-
status:
|
|
38
|
+
status: 302;
|
|
39
39
|
} | {
|
|
40
40
|
input: {
|
|
41
41
|
query: {
|
|
@@ -49,7 +49,7 @@ export declare const identifierRoutes: OpenAPIHono<{
|
|
|
49
49
|
};
|
|
50
50
|
output: {};
|
|
51
51
|
outputFormat: string;
|
|
52
|
-
status:
|
|
52
|
+
status: 400;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
}, "/">;
|
|
@@ -13,7 +13,7 @@ export declare const impersonateRoutes: OpenAPIHono<{
|
|
|
13
13
|
};
|
|
14
14
|
output: {};
|
|
15
15
|
outputFormat: string;
|
|
16
|
-
status:
|
|
16
|
+
status: 200;
|
|
17
17
|
} | {
|
|
18
18
|
input: {
|
|
19
19
|
query: {
|
|
@@ -22,7 +22,7 @@ export declare const impersonateRoutes: OpenAPIHono<{
|
|
|
22
22
|
};
|
|
23
23
|
output: {};
|
|
24
24
|
outputFormat: string;
|
|
25
|
-
status:
|
|
25
|
+
status: 400;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
} & {
|
|
@@ -52,7 +52,7 @@ export declare const impersonateRoutes: OpenAPIHono<{
|
|
|
52
52
|
};
|
|
53
53
|
output: {};
|
|
54
54
|
outputFormat: string;
|
|
55
|
-
status:
|
|
55
|
+
status: 302;
|
|
56
56
|
} | {
|
|
57
57
|
input: {
|
|
58
58
|
query: {
|
|
@@ -65,7 +65,7 @@ export declare const impersonateRoutes: OpenAPIHono<{
|
|
|
65
65
|
};
|
|
66
66
|
output: {};
|
|
67
67
|
outputFormat: string;
|
|
68
|
-
status:
|
|
68
|
+
status: 400;
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
}, "/">;
|
|
@@ -27,7 +27,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
27
27
|
};
|
|
28
28
|
output: {};
|
|
29
29
|
outputFormat: string;
|
|
30
|
-
status:
|
|
30
|
+
status: 302;
|
|
31
31
|
} | {
|
|
32
32
|
input: {
|
|
33
33
|
query: {
|
|
@@ -36,7 +36,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
36
36
|
};
|
|
37
37
|
output: {};
|
|
38
38
|
outputFormat: string;
|
|
39
|
-
status:
|
|
39
|
+
status: 400;
|
|
40
40
|
} | {
|
|
41
41
|
input: {
|
|
42
42
|
query: {
|
|
@@ -126,7 +126,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
126
126
|
};
|
|
127
127
|
output: {};
|
|
128
128
|
outputFormat: string;
|
|
129
|
-
status:
|
|
129
|
+
status: 200;
|
|
130
130
|
} | {
|
|
131
131
|
input: {
|
|
132
132
|
query: {
|
|
@@ -135,7 +135,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
135
135
|
};
|
|
136
136
|
output: {};
|
|
137
137
|
outputFormat: string;
|
|
138
|
-
status:
|
|
138
|
+
status: 400;
|
|
139
139
|
};
|
|
140
140
|
};
|
|
141
141
|
} & {
|
|
@@ -165,7 +165,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
165
165
|
};
|
|
166
166
|
output: {};
|
|
167
167
|
outputFormat: string;
|
|
168
|
-
status:
|
|
168
|
+
status: 302;
|
|
169
169
|
} | {
|
|
170
170
|
input: {
|
|
171
171
|
query: {
|
|
@@ -178,7 +178,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
178
178
|
};
|
|
179
179
|
output: {};
|
|
180
180
|
outputFormat: string;
|
|
181
|
-
status:
|
|
181
|
+
status: 400;
|
|
182
182
|
};
|
|
183
183
|
};
|
|
184
184
|
}, "/impersonate"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -520,7 +520,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
520
520
|
};
|
|
521
521
|
output: {};
|
|
522
522
|
outputFormat: string;
|
|
523
|
-
status:
|
|
523
|
+
status: 302;
|
|
524
524
|
} | {
|
|
525
525
|
input: {
|
|
526
526
|
query: {
|
|
@@ -534,7 +534,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
534
534
|
};
|
|
535
535
|
output: {};
|
|
536
536
|
outputFormat: string;
|
|
537
|
-
status:
|
|
537
|
+
status: 400;
|
|
538
538
|
};
|
|
539
539
|
};
|
|
540
540
|
}, "/login/identifier"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Account MFA TOTP Enrollment screen - enroll authenticator app from account settings
|
|
3
|
-
*
|
|
4
|
-
* Corresponds to: /u2/account/security/totp-enrollment
|
|
5
|
-
*/
|
|
6
1
|
import type { ScreenDefinition } from "./types";
|
|
7
2
|
/**
|
|
8
3
|
* Screen definition for account MFA TOTP enrollment
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connect Tenant Select screen — control-plane-only step in the consent flow.
|
|
3
|
-
*
|
|
4
|
-
* When `/connect/start` is hit on the multi-tenancy control plane, the user
|
|
5
|
-
* picks which child tenant the IAT should be minted on. Each child tenant is
|
|
6
|
-
* represented by an organization on the control plane whose `name` matches
|
|
7
|
-
* the child tenant id (see @authhero/multi-tenancy provisioning hooks).
|
|
8
|
-
*
|
|
9
|
-
* Corresponds to: /u2/connect/select-tenant
|
|
10
|
-
*/
|
|
11
1
|
import type { ScreenContext, ScreenResult, ScreenDefinition } from "./types";
|
|
12
2
|
export declare function connectTenantSelectScreen(context: ScreenContext): Promise<ScreenResult>;
|
|
13
3
|
export declare const connectTenantSelectScreenDefinition: ScreenDefinition;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Login screen - combined identifier + password screen (Identifier + Password flow)
|
|
3
|
-
*
|
|
4
|
-
* This screen shows email/username input, password input, and social login buttons
|
|
5
|
-
* all on a single page. Used when identifier_first is set to false.
|
|
6
|
-
*
|
|
7
|
-
* Corresponds to: /u2/login
|
|
8
|
-
*/
|
|
9
1
|
import type { ScreenContext, ScreenResult, ScreenDefinition } from "./types";
|
|
10
2
|
/**
|
|
11
3
|
* Create the login screen (combined identifier + password)
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Passkey Challenge screen — WebAuthn authentication ceremony
|
|
3
|
-
*
|
|
4
|
-
* Allows users to sign in using a registered passkey (discoverable credential).
|
|
5
|
-
* This triggers navigator.credentials.get() and verifies the assertion response.
|
|
6
|
-
*
|
|
7
|
-
* GET: Generates WebAuthn authentication options and renders the challenge screen.
|
|
8
|
-
* POST: Verifies the assertion response, resolves the user, and completes login.
|
|
9
|
-
*
|
|
10
|
-
* Passkey authentication bypasses MFA since it already provides strong
|
|
11
|
-
* multi-factor assurance (possession + biometric/PIN).
|
|
12
|
-
*
|
|
13
|
-
* Corresponds to: /u2/passkey/challenge
|
|
14
|
-
*/
|
|
15
1
|
import type { ScreenDefinition } from "./types";
|
|
16
2
|
export declare const passkeyChallengeScreenDefinition: ScreenDefinition;
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Passkey Enrollment Nudge screen
|
|
3
|
-
*
|
|
4
|
-
* Shown after login when progressive enrollment is enabled and the user
|
|
5
|
-
* has no passkeys registered. Offers three choices:
|
|
6
|
-
* - "Set up passkey" → proceeds to the enrollment ceremony
|
|
7
|
-
* - "Maybe later" → snoozes the prompt for 30 days
|
|
8
|
-
* - "Don't show again" → permanently opts out
|
|
9
|
-
*
|
|
10
|
-
* Client-side: if the browser doesn't support WebAuthn
|
|
11
|
-
* (window.PublicKeyCredential is undefined), the screen auto-submits
|
|
12
|
-
* with action_no_webauthn so the login flow is never blocked.
|
|
13
|
-
*
|
|
14
|
-
* Corresponds to: /u2/passkey/enrollment-nudge
|
|
15
|
-
*/
|
|
16
1
|
import type { ScreenDefinition } from "./types";
|
|
17
2
|
export declare const passkeyEnrollmentNudgeScreenDefinition: ScreenDefinition;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Passkey Enrollment screen — WebAuthn registration ceremony
|
|
3
|
-
*
|
|
4
|
-
* GET: Generates WebAuthn registration options and renders a screen that
|
|
5
|
-
* triggers `navigator.credentials.create()` via an inline script.
|
|
6
|
-
* POST: Verifies the attestation response and stores the credential.
|
|
7
|
-
*
|
|
8
|
-
* Corresponds to: /u2/passkey/enrollment
|
|
9
|
-
*/
|
|
10
1
|
import type { ScreenDefinition } from "./types";
|
|
11
2
|
export declare const passkeyEnrollmentScreenDefinition: ScreenDefinition;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reset Password Code screen - enter code + new password
|
|
3
|
-
*
|
|
4
|
-
* Used when the connection's verification_method is "code".
|
|
5
|
-
* The user receives a 6-digit code via email and enters it
|
|
6
|
-
* along with their new password on the same page.
|
|
7
|
-
*
|
|
8
|
-
* Corresponds to: /u2/reset-password/code
|
|
9
|
-
*/
|
|
10
1
|
import type { ScreenContext, ScreenResult, ScreenDefinition } from "./types";
|
|
11
2
|
/**
|
|
12
3
|
* Create the reset-password-code screen
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reset Password screen - set new password after reset
|
|
3
|
-
*
|
|
4
|
-
* Corresponds to: /u/reset-password
|
|
5
|
-
*/
|
|
6
1
|
import type { ScreenContext, ScreenResult, ScreenDefinition } from "./types";
|
|
7
2
|
import type { Context } from "hono";
|
|
8
3
|
import type { Bindings, Variables } from "../../../types";
|
|
@@ -19,7 +14,8 @@ export declare function executePasswordReset(params: {
|
|
|
19
14
|
client: EnrichedClient;
|
|
20
15
|
code: string;
|
|
21
16
|
password: string;
|
|
22
|
-
|
|
17
|
+
loginSessionId: string;
|
|
18
|
+
method: "code" | "link";
|
|
23
19
|
}): Promise<{
|
|
24
20
|
success: true;
|
|
25
21
|
} | {
|
|
@@ -165,7 +165,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
165
165
|
$get: {
|
|
166
166
|
input: {
|
|
167
167
|
param: {
|
|
168
|
-
screen: "
|
|
168
|
+
screen: "account" | "login" | "impersonate" | "signup" | "reset-password" | "consent" | "enter-password" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
|
|
169
169
|
};
|
|
170
170
|
} & {
|
|
171
171
|
query: {
|
|
@@ -181,7 +181,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
181
181
|
} | {
|
|
182
182
|
input: {
|
|
183
183
|
param: {
|
|
184
|
-
screen: "
|
|
184
|
+
screen: "account" | "login" | "impersonate" | "signup" | "reset-password" | "consent" | "enter-password" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
|
|
185
185
|
};
|
|
186
186
|
} & {
|
|
187
187
|
query: {
|
|
@@ -193,11 +193,11 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
193
193
|
};
|
|
194
194
|
output: {};
|
|
195
195
|
outputFormat: string;
|
|
196
|
-
status:
|
|
196
|
+
status: 302;
|
|
197
197
|
} | {
|
|
198
198
|
input: {
|
|
199
199
|
param: {
|
|
200
|
-
screen: "
|
|
200
|
+
screen: "account" | "login" | "impersonate" | "signup" | "reset-password" | "consent" | "enter-password" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
|
|
201
201
|
};
|
|
202
202
|
} & {
|
|
203
203
|
query: {
|
|
@@ -209,7 +209,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
209
209
|
};
|
|
210
210
|
output: {};
|
|
211
211
|
outputFormat: string;
|
|
212
|
-
status:
|
|
212
|
+
status: 400;
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
215
|
} & {
|
|
@@ -217,7 +217,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
217
217
|
$post: {
|
|
218
218
|
input: {
|
|
219
219
|
param: {
|
|
220
|
-
screen: "
|
|
220
|
+
screen: "login" | "impersonate" | "signup" | "reset-password" | "consent" | "enter-password" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
|
|
221
221
|
};
|
|
222
222
|
} & {
|
|
223
223
|
query: {
|
|
@@ -235,7 +235,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
235
235
|
} | {
|
|
236
236
|
input: {
|
|
237
237
|
param: {
|
|
238
|
-
screen: "
|
|
238
|
+
screen: "login" | "impersonate" | "signup" | "reset-password" | "consent" | "enter-password" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
|
|
239
239
|
};
|
|
240
240
|
} & {
|
|
241
241
|
query: {
|