authhero 9.35.0 → 9.36.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/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +72 -72
- package/dist/authhero.d.ts +141 -139
- package/dist/authhero.mjs +16605 -16119
- package/dist/{mfa-fD5vp7ql.mjs → mfa-B044FRjD.mjs} +22 -22
- package/dist/{mfa-XAWdFO9R.js → mfa-DPwn1ajo.js} +1 -1
- package/dist/mfa-attempts-BiU_pMOV.js +275 -0
- package/dist/{mfa-attempts-CpIqAsQd.mjs → mfa-attempts-DGOLb2oh.mjs} +6294 -6041
- package/dist/{passkey-enrollment-BB99mHdQ.js → passkey-enrollment-BDboqoaP.js} +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +5 -2
- package/dist/types/errors/management-api-error.d.ts +3 -0
- package/dist/types/helpers/database-connection-scope.d.ts +67 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/sso-access-tickets.d.ts +18 -0
- package/dist/types/helpers/users.d.ts +12 -2
- package/dist/types/index.d.ts +141 -139
- package/dist/types/routes/auth-api/index.d.ts +20 -18
- package/dist/types/routes/auth-api/passwordless.d.ts +10 -8
- package/dist/types/routes/auth-api/token.d.ts +10 -10
- package/dist/types/routes/management-api/action-executions.d.ts +2 -2
- package/dist/types/routes/management-api/actions.d.ts +1 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +13 -13
- package/dist/types/routes/management-api/client-grants.d.ts +9 -9
- 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 +2 -2
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/hook-code.d.ts +2 -2
- package/dist/types/routes/management-api/index.d.ts +116 -116
- package/dist/types/routes/management-api/keys.d.ts +12 -12
- package/dist/types/routes/management-api/log-streams.d.ts +6 -6
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +5 -5
- 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/self-service-profiles.d.ts +345 -0
- package/dist/types/routes/management-api/tenant-operations.d.ts +10 -10
- package/dist/types/routes/management-api/tenants.d.ts +10 -10
- package/dist/types/routes/management-api/themes.d.ts +9 -9
- package/dist/types/routes/management-api/users.d.ts +17 -17
- package/dist/types/routes/universal-login/common.d.ts +8 -6
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/state-machines/login-session.d.ts +1 -1
- package/dist/types/utils/username-password-provider.d.ts +14 -3
- package/package.json +6 -6
- package/dist/mfa-attempts-C7toCIRn.js +0 -275
|
@@ -893,9 +893,8 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
893
893
|
client_id: string;
|
|
894
894
|
user_id: string;
|
|
895
895
|
created_at: string;
|
|
896
|
-
id: string;
|
|
897
896
|
rotating: boolean;
|
|
898
|
-
|
|
897
|
+
id: string;
|
|
899
898
|
device: {
|
|
900
899
|
initial_user_agent: string;
|
|
901
900
|
initial_ip: string;
|
|
@@ -904,6 +903,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
904
903
|
last_ip: string;
|
|
905
904
|
last_asn: string;
|
|
906
905
|
};
|
|
906
|
+
login_id: string;
|
|
907
907
|
resource_servers: {
|
|
908
908
|
audience: string;
|
|
909
909
|
scopes: string;
|
|
@@ -925,16 +925,12 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
925
925
|
idle_expires_at?: string | undefined;
|
|
926
926
|
last_exchanged_at?: string | undefined;
|
|
927
927
|
}[] | {
|
|
928
|
-
start: number;
|
|
929
|
-
limit: number;
|
|
930
|
-
length: number;
|
|
931
928
|
tokens: {
|
|
932
929
|
client_id: string;
|
|
933
930
|
user_id: string;
|
|
934
931
|
created_at: string;
|
|
935
|
-
id: string;
|
|
936
932
|
rotating: boolean;
|
|
937
|
-
|
|
933
|
+
id: string;
|
|
938
934
|
device: {
|
|
939
935
|
initial_user_agent: string;
|
|
940
936
|
initial_ip: string;
|
|
@@ -943,6 +939,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
943
939
|
last_ip: string;
|
|
944
940
|
last_asn: string;
|
|
945
941
|
};
|
|
942
|
+
login_id: string;
|
|
946
943
|
resource_servers: {
|
|
947
944
|
audience: string;
|
|
948
945
|
scopes: string;
|
|
@@ -964,16 +961,17 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
964
961
|
idle_expires_at?: string | undefined;
|
|
965
962
|
last_exchanged_at?: string | undefined;
|
|
966
963
|
}[];
|
|
967
|
-
total?: number | undefined;
|
|
968
964
|
next?: string | undefined;
|
|
969
965
|
} | {
|
|
966
|
+
start: number;
|
|
967
|
+
limit: number;
|
|
968
|
+
length: number;
|
|
970
969
|
tokens: {
|
|
971
970
|
client_id: string;
|
|
972
971
|
user_id: string;
|
|
973
972
|
created_at: string;
|
|
974
|
-
id: string;
|
|
975
973
|
rotating: boolean;
|
|
976
|
-
|
|
974
|
+
id: string;
|
|
977
975
|
device: {
|
|
978
976
|
initial_user_agent: string;
|
|
979
977
|
initial_ip: string;
|
|
@@ -982,6 +980,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
982
980
|
last_ip: string;
|
|
983
981
|
last_asn: string;
|
|
984
982
|
};
|
|
983
|
+
login_id: string;
|
|
985
984
|
resource_servers: {
|
|
986
985
|
audience: string;
|
|
987
986
|
scopes: string;
|
|
@@ -1003,6 +1002,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1003
1002
|
idle_expires_at?: string | undefined;
|
|
1004
1003
|
last_exchanged_at?: string | undefined;
|
|
1005
1004
|
}[];
|
|
1005
|
+
total?: number | undefined;
|
|
1006
1006
|
next?: string | undefined;
|
|
1007
1007
|
};
|
|
1008
1008
|
outputFormat: "json";
|
|
@@ -1081,7 +1081,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1081
1081
|
};
|
|
1082
1082
|
};
|
|
1083
1083
|
output: {
|
|
1084
|
-
type: "
|
|
1084
|
+
type: "i" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "cfgdiff" | "cfgdrift" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
1085
1085
|
date: string;
|
|
1086
1086
|
isMobile: boolean;
|
|
1087
1087
|
log_id: string;
|
|
@@ -1116,8 +1116,11 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1116
1116
|
continent_code: string;
|
|
1117
1117
|
} | undefined;
|
|
1118
1118
|
}[] | {
|
|
1119
|
+
start: number;
|
|
1120
|
+
limit: number;
|
|
1121
|
+
length: number;
|
|
1119
1122
|
logs: {
|
|
1120
|
-
type: "
|
|
1123
|
+
type: "i" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "cfgdiff" | "cfgdrift" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
1121
1124
|
date: string;
|
|
1122
1125
|
isMobile: boolean;
|
|
1123
1126
|
log_id: string;
|
|
@@ -1152,13 +1155,11 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1152
1155
|
continent_code: string;
|
|
1153
1156
|
} | undefined;
|
|
1154
1157
|
}[];
|
|
1158
|
+
total?: number | undefined;
|
|
1155
1159
|
next?: string | undefined;
|
|
1156
1160
|
} | {
|
|
1157
|
-
start: number;
|
|
1158
|
-
limit: number;
|
|
1159
|
-
length: number;
|
|
1160
1161
|
logs: {
|
|
1161
|
-
type: "
|
|
1162
|
+
type: "i" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "cfgdiff" | "cfgdrift" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
1162
1163
|
date: string;
|
|
1163
1164
|
isMobile: boolean;
|
|
1164
1165
|
log_id: string;
|
|
@@ -1193,7 +1194,6 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1193
1194
|
continent_code: string;
|
|
1194
1195
|
} | undefined;
|
|
1195
1196
|
}[];
|
|
1196
|
-
total?: number | undefined;
|
|
1197
1197
|
next?: string | undefined;
|
|
1198
1198
|
};
|
|
1199
1199
|
outputFormat: "json";
|
|
@@ -71,13 +71,13 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
71
71
|
page_background: {
|
|
72
72
|
background_color: string;
|
|
73
73
|
background_image_url: string;
|
|
74
|
-
page_layout: "
|
|
74
|
+
page_layout: "center" | "left" | "right";
|
|
75
75
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
76
76
|
};
|
|
77
77
|
widget: {
|
|
78
|
-
header_text_alignment: "
|
|
78
|
+
header_text_alignment: "center" | "left" | "right";
|
|
79
79
|
logo_height: number;
|
|
80
|
-
logo_position: "none" | "
|
|
80
|
+
logo_position: "none" | "center" | "left" | "right";
|
|
81
81
|
logo_url: string;
|
|
82
82
|
social_buttons_layout: "bottom" | "top";
|
|
83
83
|
};
|
|
@@ -326,6 +326,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
326
326
|
values?: unknown[] | undefined;
|
|
327
327
|
} | null> | undefined;
|
|
328
328
|
} | undefined;
|
|
329
|
+
connection?: string | undefined;
|
|
329
330
|
vendor_id?: string | undefined;
|
|
330
331
|
};
|
|
331
332
|
expires_at: string;
|
|
@@ -429,13 +430,13 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
429
430
|
page_background: {
|
|
430
431
|
background_color: string;
|
|
431
432
|
background_image_url: string;
|
|
432
|
-
page_layout: "
|
|
433
|
+
page_layout: "center" | "left" | "right";
|
|
433
434
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
434
435
|
};
|
|
435
436
|
widget: {
|
|
436
|
-
header_text_alignment: "
|
|
437
|
+
header_text_alignment: "center" | "left" | "right";
|
|
437
438
|
logo_height: number;
|
|
438
|
-
logo_position: "none" | "
|
|
439
|
+
logo_position: "none" | "center" | "left" | "right";
|
|
439
440
|
logo_url: string;
|
|
440
441
|
social_buttons_layout: "bottom" | "top";
|
|
441
442
|
};
|
|
@@ -753,6 +754,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
753
754
|
values?: unknown[] | undefined;
|
|
754
755
|
} | null> | undefined;
|
|
755
756
|
} | undefined;
|
|
757
|
+
connection?: string | undefined;
|
|
756
758
|
vendor_id?: string | undefined;
|
|
757
759
|
};
|
|
758
760
|
expires_at: string;
|
|
@@ -165,7 +165,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
165
165
|
$get: {
|
|
166
166
|
input: {
|
|
167
167
|
param: {
|
|
168
|
-
screen: "signup" | "
|
|
168
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "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" | "device/code" | "device/confirmation" | "device/complete";
|
|
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" | "
|
|
184
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "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" | "device/code" | "device/confirmation" | "device/complete";
|
|
185
185
|
};
|
|
186
186
|
} & {
|
|
187
187
|
query: {
|
|
@@ -197,7 +197,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
197
197
|
} | {
|
|
198
198
|
input: {
|
|
199
199
|
param: {
|
|
200
|
-
screen: "signup" | "
|
|
200
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "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" | "device/code" | "device/confirmation" | "device/complete";
|
|
201
201
|
};
|
|
202
202
|
} & {
|
|
203
203
|
query: {
|
|
@@ -217,7 +217,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
217
217
|
$post: {
|
|
218
218
|
input: {
|
|
219
219
|
param: {
|
|
220
|
-
screen: "signup" | "
|
|
220
|
+
screen: "signup" | "login" | "impersonate" | "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" | "device/code" | "device/confirmation";
|
|
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" | "
|
|
238
|
+
screen: "signup" | "login" | "impersonate" | "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" | "device/code" | "device/confirmation";
|
|
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" | "
|
|
173
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "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" | "device/code" | "device/confirmation" | "device/complete";
|
|
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" | "
|
|
189
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "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" | "device/code" | "device/confirmation" | "device/complete";
|
|
190
190
|
};
|
|
191
191
|
} & {
|
|
192
192
|
query: {
|
|
@@ -202,7 +202,7 @@ export declare const u2Routes: OpenAPIHono<{
|
|
|
202
202
|
} | {
|
|
203
203
|
input: {
|
|
204
204
|
param: {
|
|
205
|
-
screen: "signup" | "
|
|
205
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "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" | "device/code" | "device/confirmation" | "device/complete";
|
|
206
206
|
};
|
|
207
207
|
} & {
|
|
208
208
|
query: {
|
|
@@ -222,7 +222,7 @@ export declare const u2Routes: OpenAPIHono<{
|
|
|
222
222
|
$post: {
|
|
223
223
|
input: {
|
|
224
224
|
param: {
|
|
225
|
-
screen: "signup" | "
|
|
225
|
+
screen: "signup" | "login" | "impersonate" | "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" | "device/code" | "device/confirmation";
|
|
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" | "
|
|
243
|
+
screen: "signup" | "login" | "impersonate" | "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" | "device/code" | "device/confirmation";
|
|
244
244
|
};
|
|
245
245
|
} & {
|
|
246
246
|
query: {
|
|
@@ -234,7 +234,7 @@ export declare const loginSessionMachine: import("xstate").StateMachine<LoginSes
|
|
|
234
234
|
}, {
|
|
235
235
|
type: "passwordResetRequested";
|
|
236
236
|
params: unknown;
|
|
237
|
-
}, never, "pending" | "failed" | "expired" | "authenticated" | "awaiting_email_verification" | "awaiting_mfa" | "awaiting_consent" | "awaiting_hook" | "awaiting_continuation"
|
|
237
|
+
}, never, "pending" | "failed" | "expired" | "completed" | "authenticated" | "awaiting_email_verification" | "awaiting_mfa" | "awaiting_consent" | "awaiting_hook" | "awaiting_continuation", string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
238
238
|
id: "loginSession";
|
|
239
239
|
states: {
|
|
240
240
|
readonly pending: {};
|
|
@@ -38,6 +38,13 @@ interface DualReadParams {
|
|
|
38
38
|
env: Bindings;
|
|
39
39
|
tenant_id: string;
|
|
40
40
|
username: string;
|
|
41
|
+
/**
|
|
42
|
+
* Name of the database connection to look in (#1702). Rows of the tenant's
|
|
43
|
+
* other database connections are skipped. Has no effect for tenants with a
|
|
44
|
+
* single database connection, or when the name isn't one of the tenant's
|
|
45
|
+
* database connections; see `resolveDatabaseConnectionScope`.
|
|
46
|
+
*/
|
|
47
|
+
connection?: string;
|
|
41
48
|
}
|
|
42
49
|
/**
|
|
43
50
|
* Look up a native database user, accepting either provider value.
|
|
@@ -49,17 +56,21 @@ interface DualReadParams {
|
|
|
49
56
|
* etc.) we want login to keep using the `auth2` row so credentials
|
|
50
57
|
* continue to work. The migration script merges the duplicates.
|
|
51
58
|
*/
|
|
52
|
-
export declare function getUsernamePasswordUser({ env, tenant_id, username, }: DualReadParams): Promise<User | null>;
|
|
59
|
+
export declare function getUsernamePasswordUser({ env, tenant_id, username, connection, }: DualReadParams): Promise<User | null>;
|
|
53
60
|
/**
|
|
54
61
|
* Same as {@link getUsernamePasswordUser} but resolves to the primary user
|
|
55
|
-
* if a linked secondary is matched. Same
|
|
62
|
+
* if a linked secondary is matched. Same ordering: the row is chosen first,
|
|
63
|
+
* then its cluster root.
|
|
56
64
|
*/
|
|
57
|
-
export declare function getPrimaryUsernamePasswordUser(
|
|
65
|
+
export declare function getPrimaryUsernamePasswordUser(params: DualReadParams): Promise<User | null>;
|
|
58
66
|
/**
|
|
59
67
|
* Find-or-create wrapper that first looks for an existing native database
|
|
60
68
|
* user under EITHER provider value, and only creates a new row (under the
|
|
61
69
|
* configured provider) if none exists. Prevents duplicating an existing
|
|
62
70
|
* `auth2|*` user when the tenant is migrated to `"auth0"`.
|
|
71
|
+
*
|
|
72
|
+
* `connection` is written on a new row and scopes the existing-user lookup,
|
|
73
|
+
* see {@link DualReadParams}.
|
|
63
74
|
*/
|
|
64
75
|
export declare function getOrCreateUsernamePasswordUser(ctx: Context<{
|
|
65
76
|
Bindings: Bindings;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/sesamyab/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "9.
|
|
14
|
+
"version": "9.36.0",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"vite": "^8.0.14",
|
|
64
64
|
"vite-plugin-dts": "^4.5.4",
|
|
65
65
|
"vitest": "^4.1.7",
|
|
66
|
-
"@authhero/kysely-adapter": "12.
|
|
67
|
-
"@authhero/widget": "0.41.
|
|
66
|
+
"@authhero/kysely-adapter": "12.22.0",
|
|
67
|
+
"@authhero/widget": "0.41.15"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@peculiar/x509": "^1.14.3",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"qrcode": "^1.5.4",
|
|
82
82
|
"sanitize-html": "^2.17.4",
|
|
83
83
|
"xstate": "^5.31.1",
|
|
84
|
-
"@authhero/adapter-interfaces": "4.
|
|
85
|
-
"@authhero/proxy": "0.11.
|
|
86
|
-
"@authhero/saml": "0.6.
|
|
84
|
+
"@authhero/adapter-interfaces": "4.31.0",
|
|
85
|
+
"@authhero/proxy": "0.11.18",
|
|
86
|
+
"@authhero/saml": "0.6.11"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@authhero/widget": ">=0.38.9",
|