EmailPassword Types
Type Aliases
APIInterface
type APIInterface = object;
Defined in: recipe/emailpassword/types.ts:208
Properties
APIOptions
type APIOptions = object;
Defined in: recipe/emailpassword/types.ts:197
Properties
NormalisedFormField
type NormalisedFormField = object;
Defined in: recipe/emailpassword/types.ts:55
Properties
RecipeInterface
type RecipeInterface = object;
Defined in: recipe/emailpassword/types.ts:86
Methods
consumePasswordResetToken()
consumePasswordResetToken(input): Promise<
| {
email: string;
status: "OK";
userId: string;
}
| {
status: "RESET_PASSWORD_INVALID_TOKEN_ERROR";
}>;
Defined in: recipe/emailpassword/types.ts:167
Parameters
Returns
Promise< | { email: string; status: "OK"; userId: string; } | { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR"; }>
createNewRecipeUser()
createNewRecipeUser(input): Promise<
| {
recipeUserId: RecipeUserId;
status: "OK";
user: User;
}
| {
status: "EMAIL_ALREADY_EXISTS_ERROR";
}>;
Defined in: recipe/emailpassword/types.ts:114
Parameters
Returns
Promise< | { recipeUserId: RecipeUserId; status: "OK"; user: User; } | { status: "EMAIL_ALREADY_EXISTS_ERROR"; }>
createResetPasswordToken()
createResetPasswordToken(input): Promise<
| {
status: "OK";
token: string;
}
| {
status: "UNKNOWN_USER_ID_ERROR";
}>;
Defined in: recipe/emailpassword/types.ts:160
We pass in the email as well to this function cause the input userId may not be associated with an emailpassword account. In this case, we need to know which email to use to create an emailpassword account later on.
Parameters
Returns
Promise< | { status: "OK"; token: string; } | { status: "UNKNOWN_USER_ID_ERROR"; }>
signIn()
signIn(input): Promise<
| {
recipeUserId: RecipeUserId;
status: "OK";
user: User;
}
| {
status: "WRONG_CREDENTIALS_ERROR";
}
| {
reason: | "EMAIL_VERIFICATION_REQUIRED"
| "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"
| "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"
| "SESSION_USER_ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR";
status: "LINKING_TO_SESSION_USER_FAILED";
}>;
Defined in: recipe/emailpassword/types.ts:128
Parameters
Returns
Promise< | { recipeUserId: RecipeUserId; status: "OK"; user: User; } | { status: "WRONG_CREDENTIALS_ERROR"; } | { reason: | "EMAIL_VERIFICATION_REQUIRED" | "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" | "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" | "SESSION_USER_ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"; status: "LINKING_TO_SESSION_USER_FAILED"; }>
signUp()
signUp(input): Promise<
| {
recipeUserId: RecipeUserId;
status: "OK";
user: User;
}
| {
status: "EMAIL_ALREADY_EXISTS_ERROR";
}
| {
reason: | "EMAIL_VERIFICATION_REQUIRED"
| "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"
| "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"
| "SESSION_USER_ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR";
status: "LINKING_TO_SESSION_USER_FAILED";
}>;
Defined in: recipe/emailpassword/types.ts:87
Parameters
Returns
Promise< | { recipeUserId: RecipeUserId; status: "OK"; user: User; } | { status: "EMAIL_ALREADY_EXISTS_ERROR"; } | { reason: | "EMAIL_VERIFICATION_REQUIRED" | "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" | "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" | "SESSION_USER_ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"; status: "LINKING_TO_SESSION_USER_FAILED"; }>
updateEmailOrPassword()
updateEmailOrPassword(input): Promise<
| {
status: "OK" | "UNKNOWN_USER_ID_ERROR" | "EMAIL_ALREADY_EXISTS_ERROR";
}
| {
reason: string;
status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR";
}
| {
failureReason: string;
status: "PASSWORD_POLICY_VIOLATED_ERROR";
}>;
Defined in: recipe/emailpassword/types.ts:176
Parameters
Returns
Promise< | { status: "OK" | "UNKNOWN_USER_ID_ERROR" | "EMAIL_ALREADY_EXISTS_ERROR"; } | { reason: string; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR"; } | { failureReason: string; status: "PASSWORD_POLICY_VIOLATED_ERROR"; }>
verifyCredentials()
verifyCredentials(input): Promise<
| {
recipeUserId: RecipeUserId;
status: "OK";
user: User;
}
| {
status: "WRONG_CREDENTIALS_ERROR";
}>;
Defined in: recipe/emailpassword/types.ts:148
Parameters
Returns
Promise< | { recipeUserId: RecipeUserId; status: "OK"; user: User; } | { status: "WRONG_CREDENTIALS_ERROR"; }>
TypeEmailPasswordEmailDeliveryInput
type TypeEmailPasswordEmailDeliveryInput = TypeEmailPasswordPasswordResetEmailDeliveryInput;
Defined in: recipe/emailpassword/types.ts:332
TypeEmailPasswordPasswordResetEmailDeliveryInput
type TypeEmailPasswordPasswordResetEmailDeliveryInput = object;
Defined in: recipe/emailpassword/types.ts:321
Properties
TypeFormField
type TypeFormField = object;
Defined in: recipe/emailpassword/types.ts:49
Properties
TypeInput
type TypeInput = object;
Defined in: recipe/emailpassword/types.ts:74
Properties
TypeInputFormField
type TypeInputFormField = object;
Defined in: recipe/emailpassword/types.ts:43
Properties
TypeInputSignUp
type TypeInputSignUp = object;
Defined in: recipe/emailpassword/types.ts:51
Properties
TypeNormalisedInput
type TypeNormalisedInput = object;
Defined in: recipe/emailpassword/types.ts:27
Properties
TypeNormalisedInputResetPasswordUsingTokenFeature
type TypeNormalisedInputResetPasswordUsingTokenFeature = object;
Defined in: recipe/emailpassword/types.ts:69
Properties
TypeNormalisedInputSignIn
type TypeNormalisedInputSignIn = object;
Defined in: recipe/emailpassword/types.ts:65
Properties
TypeNormalisedInputSignUp
type TypeNormalisedInputSignUp = object;
Defined in: recipe/emailpassword/types.ts:61