authhero 9.6.0 → 9.6.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.
@@ -729,19 +729,19 @@ export declare const organizationRoutes: OpenAPIHono<{
729
729
  } & {
730
730
  json: {
731
731
  client_id: string;
732
- invitee: {
733
- email?: string | undefined;
734
- };
735
732
  inviter: {
736
733
  name?: string | undefined;
737
734
  };
738
- id?: string | undefined;
735
+ invitee: {
736
+ email?: string | undefined;
737
+ };
739
738
  app_metadata?: Record<string, any> | undefined;
740
739
  user_metadata?: Record<string, any> | undefined;
740
+ id?: string | undefined;
741
741
  connection_id?: string | undefined;
742
+ ttl_sec?: number | undefined;
742
743
  roles?: string[] | undefined;
743
744
  send_invitation_email?: boolean | undefined;
744
- ttl_sec?: number | undefined;
745
745
  };
746
746
  };
747
747
  output: {
@@ -361,7 +361,7 @@ export declare function initJSXRoute(ctx: Context<{
361
361
  active?: boolean | undefined;
362
362
  } | undefined;
363
363
  signup?: {
364
- status?: "required" | "optional" | "disabled" | undefined;
364
+ status?: "optional" | "required" | "disabled" | undefined;
365
365
  verification?: {
366
366
  active?: boolean | undefined;
367
367
  } | undefined;
@@ -378,7 +378,7 @@ export declare function initJSXRoute(ctx: Context<{
378
378
  active?: boolean | undefined;
379
379
  } | undefined;
380
380
  signup?: {
381
- status?: "required" | "optional" | "disabled" | undefined;
381
+ status?: "optional" | "required" | "disabled" | undefined;
382
382
  } | undefined;
383
383
  validation?: {
384
384
  max_length?: number | undefined;
@@ -395,7 +395,7 @@ export declare function initJSXRoute(ctx: Context<{
395
395
  active?: boolean | undefined;
396
396
  } | undefined;
397
397
  signup?: {
398
- status?: "required" | "optional" | "disabled" | undefined;
398
+ status?: "optional" | "required" | "disabled" | undefined;
399
399
  } | undefined;
400
400
  } | undefined;
401
401
  } | undefined;
@@ -460,7 +460,7 @@ export declare function initJSXRoute(ctx: Context<{
460
460
  custom_login_page_preview?: string | undefined;
461
461
  form_template?: string | undefined;
462
462
  addons?: Record<string, any> | undefined;
463
- token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
463
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
464
464
  client_metadata?: Record<string, string> | undefined;
465
465
  hide_sign_up_disabled_error?: boolean | undefined;
466
466
  mobile?: Record<string, any> | undefined;
@@ -1094,7 +1094,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1094
1094
  active?: boolean | undefined;
1095
1095
  } | undefined;
1096
1096
  signup?: {
1097
- status?: "required" | "optional" | "disabled" | undefined;
1097
+ status?: "optional" | "required" | "disabled" | undefined;
1098
1098
  verification?: {
1099
1099
  active?: boolean | undefined;
1100
1100
  } | undefined;
@@ -1111,7 +1111,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1111
1111
  active?: boolean | undefined;
1112
1112
  } | undefined;
1113
1113
  signup?: {
1114
- status?: "required" | "optional" | "disabled" | undefined;
1114
+ status?: "optional" | "required" | "disabled" | undefined;
1115
1115
  } | undefined;
1116
1116
  validation?: {
1117
1117
  max_length?: number | undefined;
@@ -1128,7 +1128,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1128
1128
  active?: boolean | undefined;
1129
1129
  } | undefined;
1130
1130
  signup?: {
1131
- status?: "required" | "optional" | "disabled" | undefined;
1131
+ status?: "optional" | "required" | "disabled" | undefined;
1132
1132
  } | undefined;
1133
1133
  } | undefined;
1134
1134
  } | undefined;
@@ -1193,7 +1193,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1193
1193
  custom_login_page_preview?: string | undefined;
1194
1194
  form_template?: string | undefined;
1195
1195
  addons?: Record<string, any> | undefined;
1196
- token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
1196
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
1197
1197
  client_metadata?: Record<string, string> | undefined;
1198
1198
  hide_sign_up_disabled_error?: boolean | undefined;
1199
1199
  mobile?: Record<string, any> | undefined;
@@ -13,7 +13,7 @@ export declare const continueRoutes: OpenAPIHono<{
13
13
  };
14
14
  output: {};
15
15
  outputFormat: string;
16
- status: 400;
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: 302;
25
+ status: 400;
26
26
  } | {
27
27
  input: {
28
28
  query: {
@@ -35,7 +35,7 @@ export declare const identifierRoutes: OpenAPIHono<{
35
35
  };
36
36
  output: {};
37
37
  outputFormat: string;
38
- status: 400;
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: 302;
52
+ status: 400;
53
53
  };
54
54
  };
55
55
  }, "/">;
@@ -52,7 +52,7 @@ export declare const impersonateRoutes: OpenAPIHono<{
52
52
  };
53
53
  output: {};
54
54
  outputFormat: string;
55
- status: 400;
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: 302;
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: 400;
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: 302;
39
+ status: 400;
40
40
  } | {
41
41
  input: {
42
42
  query: {
@@ -165,7 +165,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
165
165
  };
166
166
  output: {};
167
167
  outputFormat: string;
168
- status: 400;
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: 302;
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: 400;
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: 302;
537
+ status: 400;
538
538
  };
539
539
  };
540
540
  }, "/login/identifier"> & import("hono/types").MergeSchemaPath<{
@@ -165,7 +165,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
165
165
  $get: {
166
166
  input: {
167
167
  param: {
168
- screen: "signup" | "impersonate" | "consent" | "login" | "reset-password" | "account" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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";
168
+ screen: "impersonate" | "signup" | "reset-password" | "login" | "account" | "consent" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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: "signup" | "impersonate" | "consent" | "login" | "reset-password" | "account" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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";
184
+ screen: "impersonate" | "signup" | "reset-password" | "login" | "account" | "consent" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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: 400;
196
+ status: 302;
197
197
  } | {
198
198
  input: {
199
199
  param: {
200
- screen: "signup" | "impersonate" | "consent" | "login" | "reset-password" | "account" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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";
200
+ screen: "impersonate" | "signup" | "reset-password" | "login" | "account" | "consent" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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: 302;
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: "signup" | "impersonate" | "consent" | "login" | "reset-password" | "enter-password" | "reset-password/request" | "reset-password/code" | "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";
220
+ screen: "impersonate" | "signup" | "reset-password" | "login" | "consent" | "enter-password" | "reset-password/request" | "reset-password/code" | "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: "signup" | "impersonate" | "consent" | "login" | "reset-password" | "enter-password" | "reset-password/request" | "reset-password/code" | "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";
238
+ screen: "impersonate" | "signup" | "reset-password" | "login" | "consent" | "enter-password" | "reset-password/request" | "reset-password/code" | "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: {
@@ -170,7 +170,7 @@ export declare const u2Routes: OpenAPIHono<{
170
170
  $get: {
171
171
  input: {
172
172
  param: {
173
- screen: "signup" | "impersonate" | "consent" | "login" | "reset-password" | "account" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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";
173
+ screen: "impersonate" | "signup" | "reset-password" | "login" | "account" | "consent" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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";
174
174
  };
175
175
  } & {
176
176
  query: {
@@ -186,7 +186,7 @@ export declare const u2Routes: OpenAPIHono<{
186
186
  } | {
187
187
  input: {
188
188
  param: {
189
- screen: "signup" | "impersonate" | "consent" | "login" | "reset-password" | "account" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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";
189
+ screen: "impersonate" | "signup" | "reset-password" | "login" | "account" | "consent" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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";
190
190
  };
191
191
  } & {
192
192
  query: {
@@ -198,11 +198,11 @@ export declare const u2Routes: OpenAPIHono<{
198
198
  };
199
199
  output: {};
200
200
  outputFormat: string;
201
- status: 400;
201
+ status: 302;
202
202
  } | {
203
203
  input: {
204
204
  param: {
205
- screen: "signup" | "impersonate" | "consent" | "login" | "reset-password" | "account" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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";
205
+ screen: "impersonate" | "signup" | "reset-password" | "login" | "account" | "consent" | "enter-password" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "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";
206
206
  };
207
207
  } & {
208
208
  query: {
@@ -214,7 +214,7 @@ export declare const u2Routes: OpenAPIHono<{
214
214
  };
215
215
  output: {};
216
216
  outputFormat: string;
217
- status: 302;
217
+ status: 400;
218
218
  };
219
219
  };
220
220
  } & {
@@ -222,7 +222,7 @@ export declare const u2Routes: OpenAPIHono<{
222
222
  $post: {
223
223
  input: {
224
224
  param: {
225
- screen: "signup" | "impersonate" | "consent" | "login" | "reset-password" | "enter-password" | "reset-password/request" | "reset-password/code" | "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";
225
+ screen: "impersonate" | "signup" | "reset-password" | "login" | "consent" | "enter-password" | "reset-password/request" | "reset-password/code" | "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";
226
226
  };
227
227
  } & {
228
228
  query: {
@@ -240,7 +240,7 @@ export declare const u2Routes: OpenAPIHono<{
240
240
  } | {
241
241
  input: {
242
242
  param: {
243
- screen: "signup" | "impersonate" | "consent" | "login" | "reset-password" | "enter-password" | "reset-password/request" | "reset-password/code" | "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";
243
+ screen: "impersonate" | "signup" | "reset-password" | "login" | "consent" | "enter-password" | "reset-password/request" | "reset-password/code" | "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";
244
244
  };
245
245
  } & {
246
246
  query: {
@@ -1,2 +1,16 @@
1
1
  export declare const EMAIL_REGEX: RegExp;
2
2
  export declare function isValidEmail(value: string): boolean;
3
+ /**
4
+ * Return `payload` with `email` lowercased, or unchanged when there is nothing
5
+ * to normalize.
6
+ *
7
+ * Emails are case-insensitive identifiers: every lookup (identifier-first
8
+ * login, `getPrimaryUserByEmail`, email-based auto-linking) lowercases its
9
+ * input, so a mixed-case stored email is unreachable and spawns duplicate
10
+ * accounts. The zod request-schema transform only covers validated bodies —
11
+ * emails sourced upstream (SCIM provisioning, Auth0 lazy migration, IdP
12
+ * profiles) and emails assigned by lifecycle hooks never pass through it.
13
+ */
14
+ export declare function withLowercasedEmail<T extends {
15
+ email?: string;
16
+ }>(payload: T): T;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "9.6.0",
14
+ "version": "9.6.1",
15
15
  "files": [
16
16
  "dist"
17
17
  ],