Passwordless Types
Type Aliases
AdditionalLoginAttemptInfoProperties
type AdditionalLoginAttemptInfoProperties = object;
Defined in: recipe/passwordless/types.ts:231
When calling getLoginAttemptInfo/setLoginAttemptInfo from web-js we use generics to get access to properties in local storage that web-js does not set by default. This allows us to strongly type the response while keeping it dynamic.
In the context of auth-react this type indicates all the additional properties we need.
Properties
ComponentOverrideMap
type ComponentOverrideMap = object;
Defined in: recipe/passwordless/types.ts:445
Properties
Config
type Config = UserInput & AuthRecipeModuleConfig<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext>;
Defined in: recipe/passwordless/types.ts:125
GetRedirectionURLContext
type GetRedirectionURLContext = never;
Defined in: recipe/passwordless/types.ts:78
LinkClickedScreenProps
type LinkClickedScreenProps = object;
Defined in: recipe/passwordless/types.ts:283
Properties
LinkSentChildProps
type LinkSentChildProps = LinkSentThemeProps;
Defined in: recipe/passwordless/types.ts:389
LinkSentThemeProps
type LinkSentThemeProps = object;
Defined in: recipe/passwordless/types.ts:392
Properties
LoginAttemptInfo
type LoginAttemptInfo = object;
Defined in: recipe/passwordless/types.ts:214
Properties
MFAAction
type MFAAction =
| {
callingCreateCode: boolean;
canChangeEmail: boolean;
error: string | undefined;
loginAttemptInfo: LoginAttemptInfo | undefined;
showAccessDenied: boolean;
showBackButton: boolean;
type: "load";
}
| {
loginAttemptInfo: LoginAttemptInfo;
type: "startVerify";
}
| {
timestamp: number;
type: "resendCode";
}
| {
error: string | undefined;
type: "restartFlow";
}
| {
error: string | undefined;
showAccessDenied: boolean;
type: "setError";
};
Defined in: recipe/passwordless/types.ts:335
MFAChildProps
type MFAChildProps = Omit<MFAProps, "featureState" | "dispatch">;
Defined in: recipe/passwordless/types.ts:390
MFAFooterProps
type MFAFooterProps = object;
Defined in: recipe/passwordless/types.ts:413
Properties
MFAHeaderProps
type MFAHeaderProps = object;
Defined in: recipe/passwordless/types.ts:428
Properties
MFAOTPFooterProps
type MFAOTPFooterProps = object;
Defined in: recipe/passwordless/types.ts:420
Properties
MFAOTPHeaderProps
type MFAOTPHeaderProps = object;
Defined in: recipe/passwordless/types.ts:436
Properties
MFAProps
type MFAProps = object;
Defined in: recipe/passwordless/types.ts:182
Properties
MFAState
type MFAState = object;
Defined in: recipe/passwordless/types.ts:363
Properties
NormalisedConfig
type NormalisedConfig = object & NormalisedAuthRecipeModuleConfig<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext>;
Defined in: recipe/passwordless/types.ts:100
Type Declaration
OnHandleEventContext
type OnHandleEventContext =
| {
action: "SUCCESS";
createdNewSession: boolean;
isNewRecipeUser: boolean;
user: SuperTokensWrapper;
}
| {
action: "PASSWORDLESS_RESTART_FLOW";
}
| {
action: "PASSWORDLESS_CODE_SENT";
isResend: boolean;
}
| AuthRecipeModuleOnHandleEventContext;
Defined in: recipe/passwordless/types.ts:80
PasswordlessFeatureBaseConfig
type PasswordlessFeatureBaseConfig = object & FeatureBaseConfig;
Defined in: recipe/passwordless/types.ts:128
Type Declaration
PasswordlessNormalisedBaseConfig
type PasswordlessNormalisedBaseConfig = object & NormalisedBaseConfig;
Defined in: recipe/passwordless/types.ts:96
Type Declaration
PreAndPostAPIHookAction
type PreAndPostAPIHookAction =
| "PASSWORDLESS_CREATE_CODE"
| "PASSWORDLESS_CONSUME_CODE"
| "PASSWORDLESS_RESEND_CODE"
| "EMAIL_EXISTS"
| "PHONE_NUMBER_EXISTS";
Defined in: recipe/passwordless/types.ts:53
PreAPIHookContext
type PreAPIHookContext = object;
Defined in: recipe/passwordless/types.ts:60
Properties
RecipeImplementation
type RecipeImplementation = WebJSRecipeInterface<typeof SuperTokensWrapper>;
Defined in: recipe/passwordless/types.ts:238
SignInUpChildProps
type SignInUpChildProps = SignInUpProps;
Defined in: recipe/passwordless/types.ts:372
SignInUpEmailFormProps
type SignInUpEmailFormProps = object;
Defined in: recipe/passwordless/types.ts:240
Properties
SignInUpEmailOrPhoneFormProps
type SignInUpEmailOrPhoneFormProps = object;
Defined in: recipe/passwordless/types.ts:261
Properties
SignInUpEPComboChildProps
type SignInUpEPComboChildProps = Omit<SignInUpProps, "onSuccess"> & object;
Defined in: recipe/passwordless/types.ts:373
Type Declaration
SignInUpEPComboEmailFormProps
type SignInUpEPComboEmailFormProps = object;
Defined in: recipe/passwordless/types.ts:314
Properties
SignInUpEPComboEmailOrPhoneFormProps
type SignInUpEPComboEmailOrPhoneFormProps = object;
Defined in: recipe/passwordless/types.ts:291
Properties
SignInUpFeatureConfigInput
type SignInUpFeatureConfigInput = object;
Defined in: recipe/passwordless/types.ts:132
Properties
SignInUpPhoneFormProps
type SignInUpPhoneFormProps = object;
Defined in: recipe/passwordless/types.ts:250
Properties
SignInUpProps
type SignInUpProps = object;
Defined in: recipe/passwordless/types.ts:202
Properties
SignInUpUserInputCodeFormProps
type SignInUpUserInputCodeFormProps = object;
Defined in: recipe/passwordless/types.ts:272
Properties
UserInput
type UserInput =
| {
contactMethod: "EMAIL";
signInUpFeature?: SignInUpFeatureConfigInput;
validateEmailAddress?: (email) => Promise<string | undefined> | string | undefined;
}
| {
contactMethod: "PHONE";
signInUpFeature?: SignInUpFeatureConfigInput & object;
validatePhoneNumber?: (phoneNumber) => Promise<string | undefined> | string | undefined;
}
| {
contactMethod: "EMAIL_OR_PHONE";
signInUpFeature?: SignInUpFeatureConfigInput & object;
validateEmailAddress?: (email) => Promise<string | undefined> | string | undefined;
validatePhoneNumber?: (phoneNumber) => Promise<string | undefined> | string | undefined;
} & object & AuthRecipeModuleUserInput<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext>;
Defined in: recipe/passwordless/types.ts:140
Type Declaration
UserInputCodeFormFooterProps
type UserInputCodeFormFooterProps = object;
Defined in: recipe/passwordless/types.ts:401
Properties
UserInputCodeFormHeaderProps
type UserInputCodeFormHeaderProps = object;
Defined in: recipe/passwordless/types.ts:407