UNPKG

@leancodepl/kratos

Version:

Headless React components library for building Ory Kratos authentication flows

32 lines (31 loc) 941 B
export type PasskeyCredentialOptions = { publicKey: { rp: { name: string; id: string; }; user: PublicKeyCredentialUserEntityJSON; challenge: string; pubKeyCredParams: PublicKeyCredentialParameters[]; timeout: number; authenticatorSelection: { authenticatorAttachment: AuthenticatorAttachment; requireResidentKey: boolean; residentKey: ResidentKeyRequirement; userVerification: UserVerificationRequirement; }; }; }; export type PasskeyChallengeOptions = { publicKey: { challenge: string; timeout: number; rpId: string; userVerification: UserVerificationRequirement; }; }; export type PasskeyCreateData = { credentialOptions: PasskeyCredentialOptions; displayNameFieldName: string; }; export type PasskeySettingsCreateData = PasskeyCredentialOptions;