supertokens-node
Preparing search index...
recipe/emailpassword
updateEmailOrPassword
Variable updateEmailOrPassword
updateEmailOrPassword
:
(
input
:
{
applyPasswordPolicy
?:
boolean
;
email
?:
string
;
password
?:
string
;
recipeUserId
:
RecipeUserId
;
tenantIdForPasswordPolicy
?:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
,
)
=>
Promise
<
|
{
status
:
"OK"
|
"EMAIL_ALREADY_EXISTS_ERROR"
|
"UNKNOWN_USER_ID_ERROR"
;
}
|
{
reason
:
string
;
status
:
"EMAIL_CHANGE_NOT_ALLOWED_ERROR"
}
|
{
failureReason
:
string
;
status
:
"PASSWORD_POLICY_VIOLATED_ERROR"
}
,
>
= Wrapper.updateEmailOrPassword
Type declaration
(
input
:
{
applyPasswordPolicy
?:
boolean
;
email
?:
string
;
password
?:
string
;
recipeUserId
:
RecipeUserId
;
tenantIdForPasswordPolicy
?:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
,
)
:
Promise
<
|
{
status
:
"OK"
|
"EMAIL_ALREADY_EXISTS_ERROR"
|
"UNKNOWN_USER_ID_ERROR"
;
}
|
{
reason
:
string
;
status
:
"EMAIL_CHANGE_NOT_ALLOWED_ERROR"
}
|
{
failureReason
:
string
;
status
:
"PASSWORD_POLICY_VIOLATED_ERROR"
}
,
>
Parameters
input
:
{
applyPasswordPolicy
?:
boolean
;
email
?:
string
;
password
?:
string
;
recipeUserId
:
RecipeUserId
;
tenantIdForPasswordPolicy
?:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
Returns
Promise
<
|
{
status
:
"OK"
|
"EMAIL_ALREADY_EXISTS_ERROR"
|
"UNKNOWN_USER_ID_ERROR"
;
}
|
{
reason
:
string
;
status
:
"EMAIL_CHANGE_NOT_ALLOWED_ERROR"
}
|
{
failureReason
:
string
;
status
:
"PASSWORD_POLICY_VIOLATED_ERROR"
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
supertokens-node
Loading...