Skip to main content
References

WebAuthn Types

Enumerations

RecoverAccountScreen

Defined in: recipe/webauthn/types.ts:190

Enumeration Members

Enumeration MemberValueDefined in
ContinueWithPasskey0recipe/webauthn/types.ts:191
Success1recipe/webauthn/types.ts:192

SendRecoveryEmailScreen

Defined in: recipe/webauthn/types.ts:217

Enumeration Members

Enumeration MemberValueDefined in
RecoverAccount0recipe/webauthn/types.ts:218
RecoverEmailSent1recipe/webauthn/types.ts:219

Type Aliases

ComponentOverrideMap

type ComponentOverrideMap = object;

Defined in: recipe/webauthn/types.ts:125

Properties

PropertyTypeDefined in
WebauthnContinueWithoutPasskey_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:133
WebauthnContinueWithPasskey_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:126
WebauthnMFAFooter_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:140
WebauthnMFALoadingScreen_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:137
WebauthnMFASignIn_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:136
WebauthnMFASignUp_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:138
WebauthnMFASignUpConfirmation_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:139
WebauthnPasskeyConfirmation_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:131
WebauthnPasskeyFeatureBlock_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:132
WebauthnPasskeyNotSupportedError_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:127
WebauthnPasskeyRecoveryEmailSent_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:128
WebauthnPasskeySignUpForm_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:134
WebauthnPasskeySignUpSomethingWentWrong_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:135
WebauthnRecoverAccount_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:130
WebauthnRecoverAccountForm_Override?ComponentOverride<typeof SuperTokensWrapper>recipe/webauthn/types.ts:129

Config

type Config = UserInput & AuthRecipeModuleConfig<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext>;

Defined in: recipe/webauthn/types.ts:104

ContinueOnSuccessParams

type ContinueOnSuccessParams = object;

Defined in: recipe/webauthn/types.ts:237

Properties

PropertyTypeDefined in
emailstringrecipe/webauthn/types.ts:238

ContinueWithPasskeyProps

type ContinueWithPasskeyProps = object;

Defined in: recipe/webauthn/types.ts:253

Properties

PropertyTypeDefined in
continueTo"SIGN_UP" | "SIGN_IN"recipe/webauthn/types.ts:255
continueWithPasskeyClicked() => voidrecipe/webauthn/types.ts:256
isLoadingbooleanrecipe/webauthn/types.ts:257
isPasskeySupportedbooleanrecipe/webauthn/types.ts:259
recipeImplementationRecipeImplementationrecipe/webauthn/types.ts:258

EmailSentProps

type EmailSentProps = object;

Defined in: recipe/webauthn/types.ts:262

Properties

PropertyTypeDefined in
emailstringrecipe/webauthn/types.ts:263
onEmailChangeClick() => voidrecipe/webauthn/types.ts:264

FeatureBlockDetailProps

type FeatureBlockDetailProps = object;

Defined in: recipe/webauthn/types.ts:241

Properties

PropertyTypeDefined in
iconJSX.Elementrecipe/webauthn/types.ts:244
subTextstringrecipe/webauthn/types.ts:243
titlestringrecipe/webauthn/types.ts:242

GetRedirectionURLContext

type GetRedirectionURLContext = NormalisedGetRedirectionURLContext<{
action: "SEND_RECOVERY_EMAIL";
}>;

Defined in: recipe/webauthn/types.ts:55

NormalisedConfig

type NormalisedConfig = object & NormalisedAuthRecipeModuleConfig<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext>;

Defined in: recipe/webauthn/types.ts:113

Type Declaration

NormalisedRecoveryFeatureConfig

type NormalisedRecoveryFeatureConfig = NormalisedBaseConfig & object;

Defined in: recipe/webauthn/types.ts:109

Type Declaration

NameTypeDefined in
disableDefaultUIbooleanrecipe/webauthn/types.ts:110

NormalisedSignInAndUpFormFeatureConfig

type NormalisedSignInAndUpFormFeatureConfig = NormalisedBaseConfig;

Defined in: recipe/webauthn/types.ts:107

OnHandleEventContext

type OnHandleEventContext = 
| {
action: "SUCCESS";
createdNewSession: boolean;
isNewRecipeUser: boolean;
user: SuperTokensWrapper;
}
| {
action: "GET_EMAIL_EXISTS";
exists: boolean;
}
| {
action: "REGISTER_CREDENTIAL_OK";
}
| {
action: "AUTHENTICATE_CREDENTIAL_OK";
}
| {
action: "FAILED_TO_REGISTER_USER";
}
| AuthRecipeModuleOnHandleEventContext;

Defined in: recipe/webauthn/types.ts:74

PreAndPostAPIHookAction

type PreAndPostAPIHookAction = 
| "REGISTER_OPTIONS"
| "SIGN_IN_OPTIONS"
| "SIGN_UP"
| "SIGN_IN"
| "EMAIL_EXISTS"
| "GENERATE_RECOVER_ACCOUNT_TOKEN"
| "RECOVER_ACCOUNT"
| "REGISTER_CREDENTIAL"
| "REMOVE_CREDENTIAL"
| "LIST_CREDENTIALS";

Defined in: recipe/webauthn/types.ts:62

RecipeImplementation

type RecipeImplementation = WebJSRecipeInterface<typeof SuperTokensWrapper>;

Defined in: recipe/webauthn/types.ts:123

RecoverAccountWithTokenProps

type RecoverAccountWithTokenProps = object;

Defined in: recipe/webauthn/types.ts:178

Properties

RecoverAccountWithTokenThemeProps

type RecoverAccountWithTokenThemeProps = object;

Defined in: recipe/webauthn/types.ts:195

Properties

RecoverFormProps

type RecoverFormProps = object;

Defined in: recipe/webauthn/types.ts:247

Properties

PropertyTypeDefined in
onBackClick() => voidrecipe/webauthn/types.ts:249
onSuccess(result) => voidrecipe/webauthn/types.ts:248
recipeImplementationRecipeImplementationrecipe/webauthn/types.ts:250

RegisterOptions

type RegisterOptions = Extract<Awaited<ReturnType<RecipeImplementation["getRegisterOptions"]>>, {
status: "OK";
}>;

Defined in: recipe/webauthn/types.ts:185

SendRecoveryEmailFormProps

type SendRecoveryEmailFormProps = object;

Defined in: recipe/webauthn/types.ts:210

Properties

SendRecoveryEmailFormThemeProps

type SendRecoveryEmailFormThemeProps = object;

Defined in: recipe/webauthn/types.ts:222

Properties

PropertyTypeDefined in
activeScreenSendRecoveryEmailScreenrecipe/webauthn/types.ts:230
clearError() => voidrecipe/webauthn/types.ts:227
configNormalisedConfigrecipe/webauthn/types.ts:223
errorstring | undefinedrecipe/webauthn/types.ts:226
onEmailChangeClick() => voidrecipe/webauthn/types.ts:234
onError(error) => voidrecipe/webauthn/types.ts:228
onRecoverAccountBackClick() => voidrecipe/webauthn/types.ts:233
onRecoverAccountFormSuccess(result) => voidrecipe/webauthn/types.ts:232
recipeImplementationRecipeImplementationrecipe/webauthn/types.ts:225
recoverAccountEmailstringrecipe/webauthn/types.ts:229
setActiveScreenReact.Dispatch<React.SetStateAction<SendRecoveryEmailScreen>>recipe/webauthn/types.ts:231
userContext?UserContextrecipe/webauthn/types.ts:224

SignInThemeProps

type SignInThemeProps = SignUpThemeBaseProps & object;

Defined in: recipe/webauthn/types.ts:162

Type Declaration

NameTypeDefined in
isPasskeySupportedbooleanrecipe/webauthn/types.ts:163

SignUpFormProps

type SignUpFormProps = object;

Defined in: recipe/webauthn/types.ts:166

Properties

PropertyTypeDefined in
clearError() => voidrecipe/webauthn/types.ts:167
configNormalisedConfigrecipe/webauthn/types.ts:172
errorstring | undefinedrecipe/webauthn/types.ts:170
onError(error) => voidrecipe/webauthn/types.ts:168
onFetchError?(error) => voidrecipe/webauthn/types.ts:169
onSuccess?(result) => voidrecipe/webauthn/types.ts:173
recipeImplementationRecipeImplementationrecipe/webauthn/types.ts:171
resetFactorList?() => voidrecipe/webauthn/types.ts:174
showBackButtonbooleanrecipe/webauthn/types.ts:175

SignUpThemeBaseProps

type SignUpThemeBaseProps = object;

Defined in: recipe/webauthn/types.ts:143

Properties

PropertyTypeDefined in
clearError() => voidrecipe/webauthn/types.ts:144
configNormalisedConfigrecipe/webauthn/types.ts:147
errorstring | undefinedrecipe/webauthn/types.ts:151
factorIdsstring[]recipe/webauthn/types.ts:146
onError(err) => voidrecipe/webauthn/types.ts:150
onFetchError(err) => voidrecipe/webauthn/types.ts:149
onSignInUpSwitcherClick() => voidrecipe/webauthn/types.ts:154
onSuccess(result) => voidrecipe/webauthn/types.ts:148
recipeImplementationRecipeImplementationrecipe/webauthn/types.ts:145
resetFactorList() => voidrecipe/webauthn/types.ts:153
showBackButtonbooleanrecipe/webauthn/types.ts:155
userContextUserContextrecipe/webauthn/types.ts:152

SignUpThemeProps

type SignUpThemeProps = SignUpThemeBaseProps & object;

Defined in: recipe/webauthn/types.ts:158

Type Declaration

NameTypeDefined in
onRecoverAccountClick()() => voidrecipe/webauthn/types.ts:159

UserInput

type UserInput = Record<string, unknown> & object & AuthRecipeModuleUserInput<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext>;

Defined in: recipe/webauthn/types.ts:96

Type Declaration

WebAuthnMFAAction

type WebAuthnMFAAction = 
| {
accessDenied?: boolean;
error: string | undefined;
type: "setError";
}
| {
canRegisterPasskey: boolean;
deviceSupported: boolean;
email: string | undefined;
error: string | undefined;
hasRegisteredPassKey: boolean;
showBackButton: boolean;
type: "load";
};

Defined in: recipe/webauthn/types.ts:267

WebAuthnMFAProps

type WebAuthnMFAProps = object;

Defined in: recipe/webauthn/types.ts:307

Properties

PropertyTypeDefined in
configNormalisedConfigrecipe/webauthn/types.ts:309
dispatchDispatch<WebAuthnMFAAction>recipe/webauthn/types.ts:317
featureStateWebAuthnMFAStaterecipe/webauthn/types.ts:316
onBackButtonClicked() => voidrecipe/webauthn/types.ts:310
onRecoverAccountClick() => voidrecipe/webauthn/types.ts:314
onSignIn() => Promise<void>recipe/webauthn/types.ts:312
onSignOutClicked() => voidrecipe/webauthn/types.ts:311
onSignUp(email) => Promise<void>recipe/webauthn/types.ts:313
recipeImplementationRecipeImplementationrecipe/webauthn/types.ts:308
userContext?UserContextrecipe/webauthn/types.ts:315

WebAuthnMFAState

type WebAuthnMFAState = WebAuthnMFAInitialState | WebAuthnMFALoadedState;

Defined in: recipe/webauthn/types.ts:305