authhero 8.9.1 → 8.9.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.
- package/dist/authhero.cjs +107 -107
- package/dist/authhero.d.ts +242 -229
- package/dist/authhero.mjs +9162 -9099
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +1 -1
- package/dist/types/helpers/avatar.d.ts +6 -0
- package/dist/types/index.d.ts +242 -229
- package/dist/types/routes/auth-api/avatars.d.ts +18 -0
- package/dist/types/routes/auth-api/index.d.ts +29 -16
- package/dist/types/routes/auth-api/passwordless.d.ts +14 -14
- package/dist/types/routes/management-api/connections.d.ts +6 -6
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/index.d.ts +208 -208
- package/dist/types/routes/management-api/organizations.d.ts +1 -1
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +8 -8
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +2 -2
- package/dist/types/routes/universal-login/u2-index.d.ts +3 -3
- package/dist/types/routes/universal-login/u2-routes.d.ts +3 -3
- package/package.json +1 -1
|
@@ -414,7 +414,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
414
414
|
} | undefined;
|
|
415
415
|
} | undefined;
|
|
416
416
|
passkey_options?: {
|
|
417
|
-
challenge_ui?: "
|
|
417
|
+
challenge_ui?: "both" | "autofill" | "button" | undefined;
|
|
418
418
|
local_enrollment_enabled?: boolean | undefined;
|
|
419
419
|
progressive_enrollment_enabled?: boolean | undefined;
|
|
420
420
|
} | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { User } from "@authhero/adapter-interfaces";
|
|
2
|
+
export declare function getAvatarColor(seed: string): string;
|
|
3
|
+
export declare function getAvatarInitials(user: Partial<User>): string;
|
|
4
|
+
export declare function getDefaultUserPicture(issuer: string, user: Partial<User>): string;
|
|
5
|
+
export declare function withDefaultPicture<T extends Partial<User>>(user: T, issuer: string): T;
|
|
6
|
+
export declare function renderAvatarSvg(text: string, bg: string): string;
|