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.
- package/dist/authhero.cjs +134 -134
- package/dist/authhero.d.ts +146 -146
- package/dist/authhero.mjs +12106 -12095
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/password.d.ts +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +6 -6
- package/dist/types/hooks/addDataHooks.d.ts +6 -0
- package/dist/types/index.d.ts +146 -146
- package/dist/types/routes/auth-api/authorize.d.ts +3 -3
- package/dist/types/routes/auth-api/index.d.ts +35 -35
- package/dist/types/routes/auth-api/passwordless.d.ts +12 -12
- package/dist/types/routes/auth-api/token.d.ts +10 -10
- package/dist/types/routes/management-api/connections.d.ts +15 -15
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/index.d.ts +98 -98
- package/dist/types/routes/management-api/organizations.d.ts +5 -5
- package/dist/types/routes/universal-login/common.d.ts +8 -8
- package/dist/types/routes/universal-login/continue.d.ts +2 -2
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/impersonate.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +6 -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/utils/email.d.ts +14 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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" | "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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" | "
|
|
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:
|
|
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: {
|
|
@@ -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
|
}, "/">;
|
|
@@ -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: {
|
|
@@ -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<{
|
|
@@ -165,7 +165,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
165
165
|
$get: {
|
|
166
166
|
input: {
|
|
167
167
|
param: {
|
|
168
|
-
screen: "
|
|
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: "
|
|
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:
|
|
196
|
+
status: 302;
|
|
197
197
|
} | {
|
|
198
198
|
input: {
|
|
199
199
|
param: {
|
|
200
|
-
screen: "
|
|
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:
|
|
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: "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: "
|
|
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: "
|
|
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: "
|
|
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:
|
|
201
|
+
status: 302;
|
|
202
202
|
} | {
|
|
203
203
|
input: {
|
|
204
204
|
param: {
|
|
205
|
-
screen: "
|
|
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:
|
|
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: "
|
|
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: "
|
|
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;
|