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

24 lines (23 loc) 1.17 kB
import { AuthenticationResponseJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON } from "@simplewebauthn/types"; import { AddAuthenticatorResponse, ErrorResponse, VerifyResponse } from "./types/passkey"; import { ApiClientOptions } from "./types/shared"; export declare class SecurityKeyApiClient { tenantId: string; baseUrl: string; onTokenExpired?: () => void; constructor({ baseUrl, tenantId, onTokenExpired }: ApiClientOptions); registrationOptions({ token }: { token: string; }): Promise<PublicKeyCredentialCreationOptionsJSON | ErrorResponse>; authenticationOptions({ token, }: { token?: string; }): Promise<PublicKeyCredentialRequestOptionsJSON | ErrorResponse>; addAuthenticator({ token, registrationCredential, }: { token: string; registrationCredential: RegistrationResponseJSON; }): Promise<AddAuthenticatorResponse | ErrorResponse>; verify({ token, authenticationCredential, }: { token?: string; authenticationCredential: AuthenticationResponseJSON; }): Promise<VerifyResponse | ErrorResponse>; }