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

53 lines (52 loc) 1.53 kB
import { AuthenticationResponseJSON, AuthenticatorAttachment, PublicKeyCredentialCreationOptionsJSON, RegistrationResponseJSON } from "@simplewebauthn/types"; import { Authenticator } from "./shared"; export type RegistrationOptsRequest = { username?: string; authenticatorAttachment?: AuthenticatorAttachment | null; }; export type RegistrationOptsResponse = { challengeId: string; options: PublicKeyCredentialCreationOptionsJSON; }; export type AuthenticationOptsRequest = { challengeId?: string; }; export type AuthenticationOptsResponse = { challengeId: string; options: PublicKeyCredentialCreationOptionsJSON; }; export type AddAuthenticatorRequest = { challengeId: string; registrationCredential: RegistrationResponseJSON; }; export type AddAuthenticatorResponse = { isVerified: boolean; accessToken?: string; userAuthenticatorId?: string; userId?: string; userAuthenticator?: Authenticator; }; export type VerifyRequest = { challengeId: string; authenticationCredential: AuthenticationResponseJSON; deviceId?: string; }; export type VerifyResponse = { isVerified: boolean; accessToken?: string; userId?: string; userAuthenticatorId?: string; username?: string; userDisplayName?: string; }; export type PasskeyAuthenticatorResponse = { credentialId: string; verifiedAt: string; }; export type ChallengeResponse = { challengeId: string; }; export type ErrorResponse = { error: string; errorDescription?: string; };