keycloakify
Version:
Framework to create custom Keycloak UIs
23 lines (22 loc) • 676 B
TypeScript
import { KcContext } from "../../login/KcContext/KcContext";
type KcContextLike = {
url: {
resourcesPath: string;
};
isUserIdentified: "true" | "false";
challenge: string;
userVerification: KcContext.WebauthnAuthenticate["userVerification"];
rpId: string;
createTimeout: number | string;
enableWebAuthnConditionalUI?: boolean;
};
type I18nLike = {
msgStr: (key: "webauthn-unsupported-browser-text" | "passkey-unsupported-browser-text") => string;
isFetchingTranslations: boolean;
};
export declare function useScript(params: {
webAuthnButtonId: string;
kcContext: KcContextLike;
i18n: I18nLike;
}): void;
export {};