authhero 7.2.0 → 7.2.2

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.
@@ -540,8 +540,8 @@ export declare function passwordlessGrantUser(ctx: Context<{
540
540
  } | undefined;
541
541
  authenticated_at?: string | undefined;
542
542
  };
543
- connectionType: "username" | "sms" | "email";
544
- authConnection: "username" | "sms" | "email";
543
+ connectionType: "sms" | "email" | "username";
544
+ authConnection: "sms" | "email" | "username";
545
545
  session_id: string | undefined;
546
546
  authParams: {
547
547
  client_id: string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Returns the names of every callable-ish property on `adapter`, including
3
+ * those inherited from prototypes. `Object.entries` / `Object.keys` skip
4
+ * prototype methods, so iterating with those alone silently strips methods
5
+ * off class-based adapters (e.g. CloudflareRateLimit, CloudflareCache),
6
+ * leaving callers staring at `TypeError: foo.consume is not a function`
7
+ * even though the original instance had the method.
8
+ *
9
+ * Walks up to (but not including) `Object.prototype` so we don't surface
10
+ * `hasOwnProperty` and friends, and filters out `constructor`.
11
+ */
12
+ export declare function getAdapterMethodNames(adapter: Record<string, unknown>): string[];
@@ -24,10 +24,10 @@ export declare const dcrRequestSchema: z.ZodObject<{
24
24
  response_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
25
  token_endpoint_auth_method: z.ZodOptional<z.ZodEnum<{
26
26
  none: "none";
27
+ private_key_jwt: "private_key_jwt";
27
28
  client_secret_post: "client_secret_post";
28
29
  client_secret_basic: "client_secret_basic";
29
30
  client_secret_jwt: "client_secret_jwt";
30
- private_key_jwt: "private_key_jwt";
31
31
  }>>;
32
32
  jwks_uri: z.ZodOptional<z.ZodString>;
33
33
  jwks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;