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.
@@ -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, email: string, state: string, verification_method?: "link" | "code", routePrefix?: string): Promise<void>;
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?: "required" | "optional" | "disabled" | undefined;
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?: "required" | "optional" | "disabled" | undefined;
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?: "required" | "optional" | "disabled" | undefined;
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" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
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" | "sms" | "email";
558
- authConnection: "username" | "sms" | "email";
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;