Search
Preparing search index...
The search index is not available
supertokens-node
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
supertokens-node
recipe/thirdparty
Module recipe/thirdparty
Index
Classes
default
Interfaces
APIInterface
Recipe
Interface
Type aliases
APIOptions
Type
Provider
User
Variables
Error
Functions
Apple
Facebook
Github
Google
create
Email
Verification
Token
get
User
By
Id
get
User
By
Third
Party
Info
get
Users
By
Email
init
is
Email
Verified
revoke
Email
Verification
Tokens
sign
In
Up
unverify
Email
verify
Email
Using
Token
Type aliases
APIOptions
APIOptions
:
{
config
:
TypeNormalisedInput
;
emailVerificationRecipeImplementation
:
RecipeInterface
;
isInServerlessEnv
:
boolean
;
providers
:
TypeProvider
[]
;
recipeId
:
string
;
recipeImplementation
:
RecipeInterface
;
req
:
BaseRequest
;
res
:
BaseResponse
}
Type declaration
config
:
TypeNormalisedInput
email
Verification
Recipe
Implementation
:
RecipeInterface
is
In
Serverless
Env
:
boolean
providers
:
TypeProvider
[]
recipe
Id
:
string
recipe
Implementation
:
RecipeInterface
req
:
BaseRequest
res
:
BaseResponse
Type
Provider
Type
Provider
:
{
id
:
string
;
get
:
any
}
Type declaration
id
:
string
get
:
function
get
(
redirectURI
:
undefined
|
string
, authCodeFromRequest
:
undefined
|
string
)
:
Promise
<
TypeProviderGetResponse
>
Parameters
redirectURI:
undefined
|
string
authCodeFromRequest:
undefined
|
string
Returns
Promise
<
TypeProviderGetResponse
>
User
User
:
{
email
:
string
;
id
:
string
;
thirdParty
:
{
id
:
string
;
userId
:
string
}
;
timeJoined
:
number
}
Type declaration
email
:
string
id
:
string
third
Party
:
{
id
:
string
;
userId
:
string
}
id
:
string
user
Id
:
string
time
Joined
:
number
Variables
Error
Error
:
typeof
default
= ...
Functions
Apple
Apple
(
config
:
TypeThirdPartyProviderAppleConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderAppleConfig
Returns
TypeProvider
Facebook
Facebook
(
config
:
TypeThirdPartyProviderFacebookConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderFacebookConfig
Returns
TypeProvider
Github
Github
(
config
:
TypeThirdPartyProviderGithubConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderGithubConfig
Returns
TypeProvider
Google
Google
(
config
:
TypeThirdPartyProviderGoogleConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderGoogleConfig
Returns
TypeProvider
create
Email
Verification
Token
create
Email
Verification
Token
(
userId
:
string
)
:
Promise
<
{
status
:
"OK"
;
token
:
string
}
|
{
status
:
"EMAIL_ALREADY_VERIFIED_ERROR"
}
>
Parameters
userId:
string
Returns
Promise
<
{
status
:
"OK"
;
token
:
string
}
|
{
status
:
"EMAIL_ALREADY_VERIFIED_ERROR"
}
>
get
User
By
Id
get
User
By
Id
(
userId
:
string
)
:
Promise
<
undefined
|
User
>
Parameters
userId:
string
Returns
Promise
<
undefined
|
User
>
get
User
By
Third
Party
Info
get
User
By
Third
Party
Info
(
thirdPartyId
:
string
, thirdPartyUserId
:
string
)
:
Promise
<
undefined
|
User
>
Parameters
thirdPartyId:
string
thirdPartyUserId:
string
Returns
Promise
<
undefined
|
User
>
get
Users
By
Email
get
Users
By
Email
(
email
:
string
)
:
Promise
<
User
[]
>
Parameters
email:
string
Returns
Promise
<
User
[]
>
init
init
(
config
:
TypeInput
)
:
RecipeListFunction
Parameters
config:
TypeInput
Returns
RecipeListFunction
is
Email
Verified
is
Email
Verified
(
userId
:
string
)
:
Promise
<
boolean
>
Parameters
userId:
string
Returns
Promise
<
boolean
>
revoke
Email
Verification
Tokens
revoke
Email
Verification
Tokens
(
userId
:
string
)
:
Promise
<
{
status
:
"OK"
}
>
Parameters
userId:
string
Returns
Promise
<
{
status
:
"OK"
}
>
sign
In
Up
sign
In
Up
(
thirdPartyId
:
string
, thirdPartyUserId
:
string
, email
:
{
id
:
string
;
isVerified
:
boolean
}
)
:
Promise
<
{
createdNewUser
:
boolean
;
status
:
"OK"
;
user
:
User
}
|
{
error
:
string
;
status
:
"FIELD_ERROR"
}
>
Parameters
thirdPartyId:
string
thirdPartyUserId:
string
email:
{
id
:
string
;
isVerified
:
boolean
}
id
:
string
is
Verified
:
boolean
Returns
Promise
<
{
createdNewUser
:
boolean
;
status
:
"OK"
;
user
:
User
}
|
{
error
:
string
;
status
:
"FIELD_ERROR"
}
>
unverify
Email
unverify
Email
(
userId
:
string
)
:
Promise
<
{
status
:
"OK"
}
>
Parameters
userId:
string
Returns
Promise
<
{
status
:
"OK"
}
>
verify
Email
Using
Token
verify
Email
Using
Token
(
token
:
string
)
:
Promise
<
undefined
|
{
status
:
"EMAIL_VERIFICATION_INVALID_TOKEN_ERROR"
}
|
User
>
Parameters
token:
string
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
recipe/emailpassword
recipe/emailverification
recipe/jwt
recipe/session
recipe/thirdparty
recipe/thirdpartyemailpassword
default
APIInterface
Recipe
Interface
APIOptions
Type
Provider
User
Error
Apple
Facebook
Github
Google
create
Email
Verification
Token
get
User
By
Id
get
User
By
Third
Party
Info
get
Users
By
Email
init
is
Email
Verified
revoke
Email
Verification
Tokens
sign
In
Up
unverify
Email
verify
Email
Using
Token
Generated using
TypeDoc