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
|
@@ -37,4 +37,4 @@ export declare function changePassword(ctx: Context<{
|
|
|
37
37
|
export declare function requestPasswordReset(ctx: Context<{
|
|
38
38
|
Bindings: Bindings;
|
|
39
39
|
Variables: Variables;
|
|
40
|
-
}>, client: EnrichedClient,
|
|
40
|
+
}>, client: EnrichedClient, emailInput: string, state: string, verification_method?: "link" | "code", routePrefix?: string): Promise<void>;
|
|
@@ -372,7 +372,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
372
372
|
active?: boolean | undefined;
|
|
373
373
|
} | undefined;
|
|
374
374
|
signup?: {
|
|
375
|
-
status?: "
|
|
375
|
+
status?: "optional" | "required" | "disabled" | undefined;
|
|
376
376
|
verification?: {
|
|
377
377
|
active?: boolean | undefined;
|
|
378
378
|
} | undefined;
|
|
@@ -389,7 +389,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
389
389
|
active?: boolean | undefined;
|
|
390
390
|
} | undefined;
|
|
391
391
|
signup?: {
|
|
392
|
-
status?: "
|
|
392
|
+
status?: "optional" | "required" | "disabled" | undefined;
|
|
393
393
|
} | undefined;
|
|
394
394
|
validation?: {
|
|
395
395
|
max_length?: number | undefined;
|
|
@@ -406,7 +406,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
406
406
|
active?: boolean | undefined;
|
|
407
407
|
} | undefined;
|
|
408
408
|
signup?: {
|
|
409
|
-
status?: "
|
|
409
|
+
status?: "optional" | "required" | "disabled" | undefined;
|
|
410
410
|
} | undefined;
|
|
411
411
|
} | undefined;
|
|
412
412
|
} | undefined;
|
|
@@ -471,7 +471,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
471
471
|
custom_login_page_preview?: string | undefined;
|
|
472
472
|
form_template?: string | undefined;
|
|
473
473
|
addons?: Record<string, any> | undefined;
|
|
474
|
-
token_endpoint_auth_method?: "none" | "
|
|
474
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
475
475
|
client_metadata?: Record<string, string> | undefined;
|
|
476
476
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
477
477
|
mobile?: Record<string, any> | undefined;
|
|
@@ -554,8 +554,8 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
554
554
|
} | undefined;
|
|
555
555
|
authenticated_at?: string | undefined;
|
|
556
556
|
};
|
|
557
|
-
connectionType: "username" | "
|
|
558
|
-
authConnection: "username" | "
|
|
557
|
+
connectionType: "username" | "email" | "sms";
|
|
558
|
+
authConnection: "username" | "email" | "sms";
|
|
559
559
|
session_id: string | undefined;
|
|
560
560
|
authParams: {
|
|
561
561
|
client_id: string;
|
|
@@ -9,6 +9,12 @@ import { Bindings, Variables } from "../types";
|
|
|
9
9
|
* that run pre/post hooks, apply the narrow transactional commits, and
|
|
10
10
|
* dispatch post-event outbox messages. `users.rawCreate` is NOT decorated —
|
|
11
11
|
* commit paths call it directly to bypass the hook layer by design.
|
|
12
|
+
*
|
|
13
|
+
* `email` is lowercased on the way in so the pre-commit hooks and lookups
|
|
14
|
+
* (`preUserSignupHook`, the email→primary linking query) see the same
|
|
15
|
+
* normalized value that will be stored. Hooks can assign `email` themselves
|
|
16
|
+
* after this point, so the decorators normalize again just before their
|
|
17
|
+
* commit — see `createUserHooks` / `createUserUpdateHooks`.
|
|
12
18
|
*/
|
|
13
19
|
export declare function addDataHooks(ctx: Context<{
|
|
14
20
|
Bindings: Bindings;
|