Search
Preparing search index...
The search index is not available
supertokens-node
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
supertokens-node
recipe/thirdpartyemailpassword
default
Class default
Hierarchy
default
Index
Constructors
constructor
Properties
Apple
Discord
Error
Facebook
Github
Google
Google
Workspaces
init
Methods
create
Email
Verification
Token
create
Reset
Password
Token
email
Password
Sign
In
email
Password
Sign
Up
get
User
By
Id
get
User
By
Third
Party
Info
get
Users
By
Email
is
Email
Verified
reset
Password
Using
Token
revoke
Email
Verification
Tokens
send
Email
third
Party
Sign
In
Up
unverify
Email
update
Email
Or
Password
verify
Email
Using
Token
Constructors
constructor
new default
(
)
:
default
Returns
default
Properties
Static
Apple
Apple
:
(
(
config
:
TypeThirdPartyProviderAppleConfig
)
=>
TypeProvider
)
= thirdPartyProviders.Apple
Type declaration
(
config
:
TypeThirdPartyProviderAppleConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderAppleConfig
Returns
TypeProvider
Static
Discord
Discord
:
(
(
config
:
TypeThirdPartyProviderDiscordConfig
)
=>
TypeProvider
)
= thirdPartyProviders.Discord
Type declaration
(
config
:
TypeThirdPartyProviderDiscordConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderDiscordConfig
Returns
TypeProvider
Static
Error
Error
:
typeof
default
= SuperTokensError
Static
Facebook
Facebook
:
(
(
config
:
TypeThirdPartyProviderFacebookConfig
)
=>
TypeProvider
)
= thirdPartyProviders.Facebook
Type declaration
(
config
:
TypeThirdPartyProviderFacebookConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderFacebookConfig
Returns
TypeProvider
Static
Github
Github
:
(
(
config
:
TypeThirdPartyProviderGithubConfig
)
=>
TypeProvider
)
= thirdPartyProviders.Github
Type declaration
(
config
:
TypeThirdPartyProviderGithubConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderGithubConfig
Returns
TypeProvider
Static
Google
Google
:
(
(
config
:
TypeThirdPartyProviderGoogleConfig
)
=>
TypeProvider
)
= thirdPartyProviders.Google
Type declaration
(
config
:
TypeThirdPartyProviderGoogleConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderGoogleConfig
Returns
TypeProvider
Static
Google
Workspaces
Google
Workspaces
:
(
(
config
:
TypeThirdPartyProviderGoogleWorkspacesConfig
)
=>
TypeProvider
)
= thirdPartyProviders.GoogleWorkspaces
Type declaration
(
config
:
TypeThirdPartyProviderGoogleWorkspacesConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderGoogleWorkspacesConfig
Returns
TypeProvider
Static
init
init
:
(
(
config
:
TypeInput
)
=>
RecipeListFunction
)
= Recipe.init
Type declaration
(
config
:
TypeInput
)
:
RecipeListFunction
Parameters
config:
TypeInput
Returns
RecipeListFunction
Methods
Static
create
Email
Verification
Token
create
Email
Verification
Token
(
userId
:
string
, userContext
?:
any
)
:
Promise
<
{
status
:
"OK"
;
token
:
string
}
|
{
status
:
"EMAIL_ALREADY_VERIFIED_ERROR"
}
>
Parameters
userId:
string
userContext:
any
= {}
Returns
Promise
<
{
status
:
"OK"
;
token
:
string
}
|
{
status
:
"EMAIL_ALREADY_VERIFIED_ERROR"
}
>
Static
create
Reset
Password
Token
create
Reset
Password
Token
(
userId
:
string
, userContext
?:
any
)
:
Promise
<
{
status
:
"OK"
;
token
:
string
}
|
{
status
:
"UNKNOWN_USER_ID_ERROR"
}
>
Parameters
userId:
string
userContext:
any
= {}
Returns
Promise
<
{
status
:
"OK"
;
token
:
string
}
|
{
status
:
"UNKNOWN_USER_ID_ERROR"
}
>
Static
email
Password
Sign
In
email
Password
Sign
In
(
email
:
string
, password
:
string
, userContext
?:
any
)
:
Promise
<
{
status
:
"OK"
;
user
:
User
}
|
{
status
:
"WRONG_CREDENTIALS_ERROR"
}
>
Parameters
email:
string
password:
string
userContext:
any
= {}
Returns
Promise
<
{
status
:
"OK"
;
user
:
User
}
|
{
status
:
"WRONG_CREDENTIALS_ERROR"
}
>
Static
email
Password
Sign
Up
email
Password
Sign
Up
(
email
:
string
, password
:
string
, userContext
?:
any
)
:
Promise
<
{
status
:
"OK"
;
user
:
User
}
|
{
status
:
"EMAIL_ALREADY_EXISTS_ERROR"
}
>
Parameters
email:
string
password:
string
userContext:
any
= {}
Returns
Promise
<
{
status
:
"OK"
;
user
:
User
}
|
{
status
:
"EMAIL_ALREADY_EXISTS_ERROR"
}
>
Static
get
User
By
Id
get
User
By
Id
(
userId
:
string
, userContext
?:
any
)
:
Promise
<
undefined
|
User
>
Parameters
userId:
string
userContext:
any
= {}
Returns
Promise
<
undefined
|
User
>
Static
get
User
By
Third
Party
Info
get
User
By
Third
Party
Info
(
thirdPartyId
:
string
, thirdPartyUserId
:
string
, userContext
?:
any
)
:
Promise
<
undefined
|
User
>
Parameters
thirdPartyId:
string
thirdPartyUserId:
string
userContext:
any
= {}
Returns
Promise
<
undefined
|
User
>
Static
get
Users
By
Email
get
Users
By
Email
(
email
:
string
, userContext
?:
any
)
:
Promise
<
User
[]
>
Parameters
email:
string
userContext:
any
= {}
Returns
Promise
<
User
[]
>
Static
is
Email
Verified
is
Email
Verified
(
userId
:
string
, userContext
?:
any
)
:
Promise
<
boolean
>
Parameters
userId:
string
userContext:
any
= {}
Returns
Promise
<
boolean
>
Static
reset
Password
Using
Token
reset
Password
Using
Token
(
token
:
string
, newPassword
:
string
, userContext
?:
any
)
:
Promise
<
{
status
:
"OK"
;
userId
?:
string
}
|
{
status
:
"RESET_PASSWORD_INVALID_TOKEN_ERROR"
}
>
Parameters
token:
string
newPassword:
string
userContext:
any
= {}
Returns
Promise
<
{
status
:
"OK"
;
userId
?:
string
}
|
{
status
:
"RESET_PASSWORD_INVALID_TOKEN_ERROR"
}
>
Static
revoke
Email
Verification
Tokens
revoke
Email
Verification
Tokens
(
userId
:
string
, userContext
?:
any
)
:
Promise
<
{
status
:
"OK"
}
>
Parameters
userId:
string
userContext:
any
= {}
Returns
Promise
<
{
status
:
"OK"
}
>
Static
send
Email
send
Email
(
input
:
TypeEmailPasswordPasswordResetEmailDeliveryInput
&
{
userContext
?:
any
}
|
TypeEmailVerificationEmailDeliveryInput
&
{
userContext
?:
any
}
)
:
Promise
<
void
>
Parameters
input:
TypeEmailPasswordPasswordResetEmailDeliveryInput
&
{
userContext
?:
any
}
|
TypeEmailVerificationEmailDeliveryInput
&
{
userContext
?:
any
}
Returns
Promise
<
void
>
Static
third
Party
Sign
In
Up
third
Party
Sign
In
Up
(
thirdPartyId
:
string
, thirdPartyUserId
:
string
, email
:
{
id
:
string
;
isVerified
:
boolean
}
, userContext
?:
any
)
:
Promise
<
{
createdNewUser
:
boolean
;
status
:
"OK"
;
user
:
User
}
>
Parameters
thirdPartyId:
string
thirdPartyUserId:
string
email:
{
id
:
string
;
isVerified
:
boolean
}
id
:
string
is
Verified
:
boolean
userContext:
any
= {}
Returns
Promise
<
{
createdNewUser
:
boolean
;
status
:
"OK"
;
user
:
User
}
>
Static
unverify
Email
unverify
Email
(
userId
:
string
, userContext
?:
any
)
:
Promise
<
{
status
:
"OK"
}
>
Parameters
userId:
string
userContext:
any
= {}
Returns
Promise
<
{
status
:
"OK"
}
>
Static
update
Email
Or
Password
update
Email
Or
Password
(
input
:
{
email
?:
string
;
password
?:
string
;
userContext
?:
any
;
userId
:
string
}
)
:
Promise
<
{
status
:
"OK"
|
"EMAIL_ALREADY_EXISTS_ERROR"
|
"UNKNOWN_USER_ID_ERROR"
}
>
Parameters
input:
{
email
?:
string
;
password
?:
string
;
userContext
?:
any
;
userId
:
string
}
Optional
email
?:
string
Optional
password
?:
string
Optional
user
Context
?:
any
user
Id
:
string
Returns
Promise
<
{
status
:
"OK"
|
"EMAIL_ALREADY_EXISTS_ERROR"
|
"UNKNOWN_USER_ID_ERROR"
}
>
Static
verify
Email
Using
Token
verify
Email
Using
Token
(
token
:
string
, userContext
?:
any
)
:
Promise
<
undefined
|
{
status
:
"EMAIL_VERIFICATION_INVALID_TOKEN_ERROR"
}
|
User
>
Parameters
token:
string
userContext:
any
= {}
Returns
Promise
<
undefined
|
{
status
:
"EMAIL_VERIFICATION_INVALID_TOKEN_ERROR"
}
|
User
>
Modules
framework
framework/aws
Lambda
framework/express
framework/fastify
framework/hapi
framework/koa
framework/loopback
index
ingredients/emaildelivery
ingredients/smsdelivery
recipe/emailpassword
recipe/emailverification
recipe/jwt
recipe/openid
recipe/passwordless
recipe/session
recipe/thirdparty
recipe/thirdpartyemailpassword
recipe/thirdpartypasswordless
recipe/usermetadata
recipe/userroles
default
constructor
Apple
Discord
Error
Facebook
Github
Google
Google
Workspaces
init
create
Email
Verification
Token
create
Reset
Password
Token
email
Password
Sign
In
email
Password
Sign
Up
get
User
By
Id
get
User
By
Third
Party
Info
get
Users
By
Email
is
Email
Verified
reset
Password
Using
Token
revoke
Email
Verification
Tokens
send
Email
third
Party
Sign
In
Up
unverify
Email
update
Email
Or
Password
verify
Email
Using
Token
Generated using
TypeDoc