authhero 8.13.0 → 8.14.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.
@@ -11,6 +11,13 @@ import { Bindings, GrantFlowUserResult, Variables } from "../types";
11
11
  * lockout shouldn't block them.
12
12
  */
13
13
  export declare function clearFailedLogins(data: Bindings["data"], tenantId: string, user: User): Promise<void>;
14
+ /**
15
+ * Post-reset bookkeeping shared by the reset-password routes: clear the
16
+ * failed-login lockout (a successful reset proves the account owner is back
17
+ * in control) and stamp `last_password_reset` on the activity row. Both are
18
+ * best-effort — the password is already changed by the time this runs.
19
+ */
20
+ export declare function recordPasswordReset(data: Bindings["data"], tenantId: string, user: User): Promise<void>;
14
21
  export declare function passwordGrant(ctx: Context<{
15
22
  Bindings: Bindings;
16
23
  Variables: Variables;
@@ -414,7 +414,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
414
414
  } | undefined;
415
415
  } | undefined;
416
416
  passkey_options?: {
417
- challenge_ui?: "button" | "both" | "autofill" | undefined;
417
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
418
418
  local_enrollment_enabled?: boolean | undefined;
419
419
  progressive_enrollment_enabled?: boolean | undefined;
420
420
  } | undefined;