UNPKG

@authsignal/browser

Version:

**[Authsignal](https://www.authsignal.com) provides passwordless step up authentication (Multi-factor Authentication - MFA) that can be placed anywhere within your application. Authsignal also provides a no-code fraud risk rules engine to manage when step

25 lines (24 loc) 1.44 kB
import { AddAuthenticatorRequest, AddAuthenticatorResponse, AuthenticationOptsRequest, AuthenticationOptsResponse, ChallengeResponse, ErrorResponse, PasskeyAuthenticatorResponse, RegistrationOptsRequest, RegistrationOptsResponse, VerifyRequest, VerifyResponse } from "./types/passkey"; import { ApiClientOptions } from "./types/shared"; export declare class PasskeyApiClient { tenantId: string; baseUrl: string; onTokenExpired?: () => void; constructor({ baseUrl, tenantId, onTokenExpired }: ApiClientOptions); registrationOptions({ token, username, authenticatorAttachment, }: { token: string; } & RegistrationOptsRequest): Promise<RegistrationOptsResponse | ErrorResponse>; authenticationOptions({ token, challengeId, }: { token?: string; } & AuthenticationOptsRequest): Promise<AuthenticationOptsResponse | ErrorResponse>; addAuthenticator({ token, challengeId, registrationCredential, }: { token: string; } & AddAuthenticatorRequest): Promise<AddAuthenticatorResponse | ErrorResponse>; verify({ token, challengeId, authenticationCredential, deviceId, }: { token?: string; } & VerifyRequest): Promise<VerifyResponse | ErrorResponse>; getPasskeyAuthenticator({ credentialIds, }: { credentialIds: string[]; }): Promise<PasskeyAuthenticatorResponse | ErrorResponse>; challenge(action: string): Promise<ChallengeResponse | ErrorResponse>; }