WebAuthn
Classes
default
Defined in: recipe/webauthn/index.ts:28
Constructors
Constructor
new default(): default;
Returns
Properties
Methods
authenticateCredential()
static authenticateCredential(input): Promise<
| {
authenticationResponse: AuthenticationResponseJSON;
status: "OK";
}
| {
error: any;
status: "FAILED_TO_AUTHENTICATE_USER";
}
| {
error: any;
status: "WEBAUTHN_NOT_SUPPORTED";
}>;
Defined in: recipe/webauthn/index.ts:275
Parameters
Returns
Promise< | { authenticationResponse: AuthenticationResponseJSON; status: "OK"; } | { error: any; status: "FAILED_TO_AUTHENTICATE_USER"; } | { error: any; status: "WEBAUTHN_NOT_SUPPORTED"; }>
authenticateCredentialWithSignIn()
static authenticateCredentialWithSignIn(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:357
Parameters
Returns
Promise<any>
createAndRegisterCredentialForSessionUser()
static createAndRegisterCredentialForSessionUser(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:473
Parameters
Returns
Promise<any>
createCredential()
static createCredential(input): Promise<
| {
registrationResponse: RegistrationResponseJSON;
status: "OK";
}
| {
status: "AUTHENTICATOR_ALREADY_REGISTERED";
}
| {
error: any;
status: "FAILED_TO_REGISTER_USER";
}
| {
error: any;
status: "WEBAUTHN_NOT_SUPPORTED";
}>;
Defined in: recipe/webauthn/index.ts:252
Parameters
Returns
Promise< | { registrationResponse: RegistrationResponseJSON; status: "OK"; } | { status: "AUTHENTICATOR_ALREADY_REGISTERED"; } | { error: any; status: "FAILED_TO_REGISTER_USER"; } | { error: any; status: "WEBAUTHN_NOT_SUPPORTED"; }>
doesBrowserSupportWebAuthn()
static doesBrowserSupportWebAuthn(input): Promise<
| {
browserSupportsWebauthn: boolean;
platformAuthenticatorIsAvailable: boolean;
status: "OK";
}
| {
error: any;
status: "ERROR";
}>;
Defined in: recipe/webauthn/index.ts:512
Parameters
Returns
Promise< | { browserSupportsWebauthn: boolean; platformAuthenticatorIsAvailable: boolean; status: "OK"; } | { error: any; status: "ERROR"; }>
generateRecoverAccountToken()
static generateRecoverAccountToken(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:194
Parameters
Returns
Promise<any>
getEmailExists()
static getEmailExists(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:183
Parameters
Returns
Promise<any>
getRegisterOptions()
static getRegisterOptions(input): Promise<
| {
attestation: "none" | "indirect" | "direct" | "enterprise";
authenticatorSelection: {
requireResidentKey: boolean;
residentKey: ResidentKey;
userVerification: UserVerification;
};
challenge: string;
createdAt: string;
excludeCredentials: object[];
expiresAt: string;
fetchResponse: Response;
pubKeyCredParams: object[];
rp: {
id: string;
name: string;
};
status: "OK";
timeout: number;
user: {
displayName: string;
id: string;
name: string;
};
webauthnGeneratedOptionsId: string;
}
| {
fetchResponse: Response;
status: "RECOVER_ACCOUNT_TOKEN_INVALID_ERROR";
}
| {
err: string;
fetchResponse: Response;
status: "INVALID_EMAIL_ERROR";
}
| {
fetchResponse: Response;
status: "INVALID_OPTIONS_ERROR";
}>;
Defined in: recipe/webauthn/index.ts:33
Parameters
Returns
Promise< | { attestation: "none" | "indirect" | "direct" | "enterprise"; authenticatorSelection: { requireResidentKey: boolean; residentKey: ResidentKey; userVerification: UserVerification; }; challenge: string; createdAt: string; excludeCredentials: object[]; expiresAt: string; fetchResponse: Response; pubKeyCredParams: object[]; rp: { id: string; name: string; }; status: "OK"; timeout: number; user: { displayName: string; id: string; name: string; }; webauthnGeneratedOptionsId: string; } | { fetchResponse: Response; status: "RECOVER_ACCOUNT_TOKEN_INVALID_ERROR"; } | { err: string; fetchResponse: Response; status: "INVALID_EMAIL_ERROR"; } | { fetchResponse: Response; status: "INVALID_OPTIONS_ERROR"; }>
getSignInOptions()
static getSignInOptions(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:96
Parameters
Returns
Promise<any>
init()
static init(config?): any;
Defined in: recipe/webauthn/index.ts:29
Parameters
Returns
any
listCredentials()
static listCredentials(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:449
Parameters
Returns
Promise<any>
recoverAccount()
static recoverAccount(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:213
Parameters
Returns
Promise<any>
registerCredential()
static registerCredential(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:494
Parameters
Returns
Promise<any>
registerCredentialWithRecoverAccount()
static registerCredentialWithRecoverAccount(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:393
Parameters
Returns
Promise<any>
registerCredentialWithSignUp()
static registerCredentialWithSignUp(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:295
Parameters
Returns
Promise<any>
removeCredential()
static removeCredential(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:464
Parameters
Returns
Promise<any>
signIn()
static signIn(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:157
Parameters
Returns
Promise<any>
signUp()
static signUp(input): Promise<any>;
Defined in: recipe/webauthn/index.ts:114
Parameters
Returns
Promise<any>
Variables
authenticateCredential()
const authenticateCredential: (input) => Promise<
| {
authenticationResponse: AuthenticationResponseJSON;
status: "OK";
}
| {
error: any;
status: "FAILED_TO_AUTHENTICATE_USER";
}
| {
error: any;
status: "WEBAUTHN_NOT_SUPPORTED";
}> = Wrapper.authenticateCredential;
Defined in: recipe/webauthn/index.ts:538
Parameters
Returns
Promise< | { authenticationResponse: AuthenticationResponseJSON; status: "OK"; } | { error: any; status: "FAILED_TO_AUTHENTICATE_USER"; } | { error: any; status: "WEBAUTHN_NOT_SUPPORTED"; }>
authenticateCredentialWithSignIn()
const authenticateCredentialWithSignIn: (input) => Promise<any> = Wrapper.authenticateCredentialWithSignIn;
Defined in: recipe/webauthn/index.ts:540
Parameters
Returns
Promise<any>
createAndRegisterCredentialForSessionUser()
const createAndRegisterCredentialForSessionUser: (input) => Promise<any> = Wrapper.createAndRegisterCredentialForSessionUser;
Defined in: recipe/webauthn/index.ts:542
Parameters
Returns
Promise<any>
createCredential()
const createCredential: (input) => Promise<
| {
registrationResponse: RegistrationResponseJSON;
status: "OK";
}
| {
status: "AUTHENTICATOR_ALREADY_REGISTERED";
}
| {
error: any;
status: "FAILED_TO_REGISTER_USER";
}
| {
error: any;
status: "WEBAUTHN_NOT_SUPPORTED";
}> = Wrapper.createCredential;
Defined in: recipe/webauthn/index.ts:537
Parameters
Returns
Promise< | { registrationResponse: RegistrationResponseJSON; status: "OK"; } | { status: "AUTHENTICATOR_ALREADY_REGISTERED"; } | { error: any; status: "FAILED_TO_REGISTER_USER"; } | { error: any; status: "WEBAUTHN_NOT_SUPPORTED"; }>
doesBrowserSupportWebAuthn()
const doesBrowserSupportWebAuthn: (input) => Promise<
| {
browserSupportsWebauthn: boolean;
platformAuthenticatorIsAvailable: boolean;
status: "OK";
}
| {
error: any;
status: "ERROR";
}> = Wrapper.doesBrowserSupportWebAuthn;
Defined in: recipe/webauthn/index.ts:546
Parameters
Returns
Promise< | { browserSupportsWebauthn: boolean; platformAuthenticatorIsAvailable: boolean; status: "OK"; } | { error: any; status: "ERROR"; }>
generateRecoverAccountToken()
const generateRecoverAccountToken: (input) => Promise<any> = Wrapper.generateRecoverAccountToken;
Defined in: recipe/webauthn/index.ts:535
Parameters
Returns
Promise<any>
getEmailExists()
const getEmailExists: (input) => Promise<any> = Wrapper.getEmailExists;
Defined in: recipe/webauthn/index.ts:534
Parameters
Returns
Promise<any>
getRegisterOptions()
const getRegisterOptions: (input) => Promise<
| {
attestation: "none" | "indirect" | "direct" | "enterprise";
authenticatorSelection: {
requireResidentKey: boolean;
residentKey: ResidentKey;
userVerification: UserVerification;
};
challenge: string;
createdAt: string;
excludeCredentials: object[];
expiresAt: string;
fetchResponse: Response;
pubKeyCredParams: object[];
rp: {
id: string;
name: string;
};
status: "OK";
timeout: number;
user: {
displayName: string;
id: string;
name: string;
};
webauthnGeneratedOptionsId: string;
}
| {
fetchResponse: Response;
status: "RECOVER_ACCOUNT_TOKEN_INVALID_ERROR";
}
| {
err: string;
fetchResponse: Response;
status: "INVALID_EMAIL_ERROR";
}
| {
fetchResponse: Response;
status: "INVALID_OPTIONS_ERROR";
}> = Wrapper.getRegisterOptions;
Defined in: recipe/webauthn/index.ts:530
Parameters
Returns
Promise< | { attestation: "none" | "indirect" | "direct" | "enterprise"; authenticatorSelection: { requireResidentKey: boolean; residentKey: ResidentKey; userVerification: UserVerification; }; challenge: string; createdAt: string; excludeCredentials: object[]; expiresAt: string; fetchResponse: Response; pubKeyCredParams: object[]; rp: { id: string; name: string; }; status: "OK"; timeout: number; user: { displayName: string; id: string; name: string; }; webauthnGeneratedOptionsId: string; } | { fetchResponse: Response; status: "RECOVER_ACCOUNT_TOKEN_INVALID_ERROR"; } | { err: string; fetchResponse: Response; status: "INVALID_EMAIL_ERROR"; } | { fetchResponse: Response; status: "INVALID_OPTIONS_ERROR"; }>
getSignInOptions()
const getSignInOptions: (input) => Promise<any> = Wrapper.getSignInOptions;
Defined in: recipe/webauthn/index.ts:531
Parameters
Returns
Promise<any>
init()
const init: (config?) => any = Wrapper.init;
Defined in: recipe/webauthn/index.ts:529
Parameters
Returns
any
listCredentials()
const listCredentials: (input) => Promise<any> = Wrapper.listCredentials;
Defined in: recipe/webauthn/index.ts:543
Parameters
Returns
Promise<any>
recoverAccount()
const recoverAccount: (input) => Promise<any> = Wrapper.recoverAccount;
Defined in: recipe/webauthn/index.ts:536
Parameters
Returns
Promise<any>
registerCredential()
const registerCredential: (input) => Promise<any> = Wrapper.registerCredential;
Defined in: recipe/webauthn/index.ts:545
Parameters
Returns
Promise<any>
registerCredentialWithRecoverAccount()
const registerCredentialWithRecoverAccount: (input) => Promise<any> = Wrapper.registerCredentialWithRecoverAccount;
Defined in: recipe/webauthn/index.ts:541
Parameters
Returns
Promise<any>
registerCredentialWithSignUp()
const registerCredentialWithSignUp: (input) => Promise<any> = Wrapper.registerCredentialWithSignUp;
Defined in: recipe/webauthn/index.ts:539
Parameters
Returns
Promise<any>
removeCredential()
const removeCredential: (input) => Promise<any> = Wrapper.removeCredential;
Defined in: recipe/webauthn/index.ts:544
Parameters
Returns
Promise<any>
signIn()
const signIn: (input) => Promise<any> = Wrapper.signIn;
Defined in: recipe/webauthn/index.ts:533
Parameters
Returns
Promise<any>
signUp()
const signUp: (input) => Promise<any> = Wrapper.signUp;
Defined in: recipe/webauthn/index.ts:532
Parameters
Returns
Promise<any>
WebauthnComponentsOverrideProvider
const WebauthnComponentsOverrideProvider: any = Wrapper.ComponentsOverrideProvider;
Defined in: recipe/webauthn/index.ts:547