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
Type Aliases
APIInterface
APIOptions
Recipe
Interface
Type
Provider
User
Variables
Error
Functions
Apple
Discord
Facebook
Github
Google
Google
Workspaces
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
send
Email
sign
In
Up
unverify
Email
verify
Email
Using
Token
Type Aliases
APIInterface
APIInterface
:
{
appleRedirectHandlerPOST
:
undefined
|
(
(
input
:
{
code
:
string
;
options
:
APIOptions
;
state
:
string
;
userContext
:
any
}
)
=>
Promise
<
void
>
)
;
authorisationUrlGET
:
undefined
|
(
(
input
:
{
options
:
APIOptions
;
provider
:
TypeProvider
;
userContext
:
any
}
)
=>
Promise
<
{
status
:
"OK"
;
url
:
string
}
|
GeneralErrorResponse
>
)
;
signInUpPOST
:
undefined
|
(
(
input
:
{
authCodeResponse
?:
any
;
clientId
?:
string
;
code
:
string
;
options
:
APIOptions
;
provider
:
TypeProvider
;
redirectURI
:
string
;
userContext
:
any
}
)
=>
Promise
<
{
authCodeResponse
:
any
;
createdNewUser
:
boolean
;
session
:
SessionContainer
;
status
:
"OK"
;
user
:
User
}
|
{
status
:
"NO_EMAIL_GIVEN_BY_PROVIDER"
}
|
GeneralErrorResponse
>
)
}
Type declaration
apple
Redirect
HandlerPOST
:
undefined
|
(
(
input
:
{
code
:
string
;
options
:
APIOptions
;
state
:
string
;
userContext
:
any
}
)
=>
Promise
<
void
>
)
authorisation
UrlGET
:
undefined
|
(
(
input
:
{
options
:
APIOptions
;
provider
:
TypeProvider
;
userContext
:
any
}
)
=>
Promise
<
{
status
:
"OK"
;
url
:
string
}
|
GeneralErrorResponse
>
)
sign
In
UpPOST
:
undefined
|
(
(
input
:
{
authCodeResponse
?:
any
;
clientId
?:
string
;
code
:
string
;
options
:
APIOptions
;
provider
:
TypeProvider
;
redirectURI
:
string
;
userContext
:
any
}
)
=>
Promise
<
{
authCodeResponse
:
any
;
createdNewUser
:
boolean
;
session
:
SessionContainer
;
status
:
"OK"
;
user
:
User
}
|
{
status
:
"NO_EMAIL_GIVEN_BY_PROVIDER"
}
|
GeneralErrorResponse
>
)
APIOptions
APIOptions
:
{
appInfo
:
NormalisedAppinfo
;
config
:
TypeNormalisedInput
;
emailVerificationRecipeImplementation
:
RecipeInterface
;
isInServerlessEnv
:
boolean
;
providers
:
TypeProvider
[]
;
recipeId
:
string
;
recipeImplementation
:
RecipeInterface
;
req
:
BaseRequest
;
res
:
BaseResponse
}
Type declaration
app
Info
:
NormalisedAppinfo
config
:
TypeNormalisedInput
email
Verification
Recipe
Implementation
:
RecipeInterface
is
In
Serverless
Env
:
boolean
providers
:
TypeProvider
[]
recipe
Id
:
string
recipe
Implementation
:
RecipeInterface
req
:
BaseRequest
res
:
BaseResponse
Recipe
Interface
Recipe
Interface
:
{
getUserById
:
any
;
getUserByThirdPartyInfo
:
any
;
getUsersByEmail
:
any
;
signInUp
:
any
}
Type declaration
get
User
By
Id
:
function
get
User
By
Id
(
input
:
{
userContext
:
any
;
userId
:
string
}
)
:
Promise
<
undefined
|
User
>
Parameters
input:
{
userContext
:
any
;
userId
:
string
}
user
Context
:
any
user
Id
:
string
Returns
Promise
<
undefined
|
User
>
get
User
By
Third
Party
Info
:
function
get
User
By
Third
Party
Info
(
input
:
{
thirdPartyId
:
string
;
thirdPartyUserId
:
string
;
userContext
:
any
}
)
:
Promise
<
undefined
|
User
>
Parameters
input:
{
thirdPartyId
:
string
;
thirdPartyUserId
:
string
;
userContext
:
any
}
third
Party
Id
:
string
third
Party
User
Id
:
string
user
Context
:
any
Returns
Promise
<
undefined
|
User
>
get
Users
By
Email
:
function
get
Users
By
Email
(
input
:
{
email
:
string
;
userContext
:
any
}
)
:
Promise
<
User
[]
>
Parameters
input:
{
email
:
string
;
userContext
:
any
}
email
:
string
user
Context
:
any
Returns
Promise
<
User
[]
>
sign
In
Up
:
function
sign
In
Up
(
input
:
{
email
:
{
id
:
string
;
isVerified
:
boolean
}
;
thirdPartyId
:
string
;
thirdPartyUserId
:
string
;
userContext
:
any
}
)
:
Promise
<
{
createdNewUser
:
boolean
;
status
:
"OK"
;
user
:
User
}
>
Parameters
input:
{
email
:
{
id
:
string
;
isVerified
:
boolean
}
;
thirdPartyId
:
string
;
thirdPartyUserId
:
string
;
userContext
:
any
}
email
:
{
id
:
string
;
isVerified
:
boolean
}
id
:
string
is
Verified
:
boolean
third
Party
Id
:
string
third
Party
User
Id
:
string
user
Context
:
any
Returns
Promise
<
{
createdNewUser
:
boolean
;
status
:
"OK"
;
user
:
User
}
>
Type
Provider
Type
Provider
:
{
id
:
string
;
isDefault
?:
boolean
;
get
:
any
}
Type declaration
id
:
string
Optional
is
Default
?:
boolean
get
:
function
get
(
redirectURI
:
undefined
|
string
, authCodeFromRequest
:
undefined
|
string
, userContext
:
any
)
:
TypeProviderGetResponse
Parameters
redirectURI:
undefined
|
string
authCodeFromRequest:
undefined
|
string
userContext:
any
Returns
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
= Wrapper.Error
Functions
Apple
Apple
(
config
:
TypeThirdPartyProviderAppleConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderAppleConfig
Returns
TypeProvider
Discord
Discord
(
config
:
TypeThirdPartyProviderDiscordConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderDiscordConfig
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
Google
Workspaces
Google
Workspaces
(
config
:
TypeThirdPartyProviderGoogleWorkspacesConfig
)
:
TypeProvider
Parameters
config:
TypeThirdPartyProviderGoogleWorkspacesConfig
Returns
TypeProvider
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"
}
>
get
User
By
Id
get
User
By
Id
(
userId
:
string
, userContext
?:
any
)
:
Promise
<
undefined
|
User
>
Parameters
userId:
string
userContext:
any
= {}
Returns
Promise
<
undefined
|
User
>
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
>
get
Users
By
Email
get
Users
By
Email
(
email
:
string
, userContext
?:
any
)
:
Promise
<
User
[]
>
Parameters
email:
string
userContext:
any
= {}
Returns
Promise
<
User
[]
>
init
init
(
config
:
TypeInput
)
:
RecipeListFunction
Parameters
config:
TypeInput
Returns
RecipeListFunction
is
Email
Verified
is
Email
Verified
(
userId
:
string
, userContext
?:
any
)
:
Promise
<
boolean
>
Parameters
userId:
string
userContext:
any
= {}
Returns
Promise
<
boolean
>
revoke
Email
Verification
Tokens
revoke
Email
Verification
Tokens
(
userId
:
string
, userContext
?:
any
)
:
Promise
<
{
status
:
"OK"
}
>
Parameters
userId:
string
userContext:
any
= {}
Returns
Promise
<
{
status
:
"OK"
}
>
send
Email
send
Email
(
input
:
TypeEmailVerificationEmailDeliveryInput
&
{
userContext
:
any
}
)
:
Promise
<
void
>
Parameters
input:
TypeEmailVerificationEmailDeliveryInput
&
{
userContext
:
any
}
Returns
Promise
<
void
>
sign
In
Up
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
}
>
unverify
Email
unverify
Email
(
userId
:
string
, userContext
?:
any
)
:
Promise
<
{
status
:
"OK"
}
>
Parameters
userId:
string
userContext:
any
= {}
Returns
Promise
<
{
status
:
"OK"
}
>
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
APIInterface
APIOptions
Recipe
Interface
Type
Provider
User
Error
Apple
Discord
Facebook
Github
Google
Google
Workspaces
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
send
Email
sign
In
Up
unverify
Email
verify
Email
Using
Token
Generated using
TypeDoc