Search
Preparing search index...
The search index is not available
supertokens-auth-react
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
supertokens-auth-react
recipe/thirdpartyemailpassword
default
Class default
Hierarchy
default
Index
Constructors
constructor
Properties
Active
Directory
Apple
Bitbucket
BoxySAML
Components
Override
Provider
Discord
Facebook
Github
Gitlab
Google
Google
Workspaces
Linked
In
Okta
Twitter
Methods
does
Email
Exist
email
Password
Sign
In
email
Password
Sign
Up
get
AuthorisationURLWith
Query
Params
And
Set
State
get
Reset
Password
Token
FromURL
get
State
And
Other
Info
From
Storage
init
redirect
To
Third
Party
Login
send
Password
Reset
Email
sign
Out
submit
New
Password
third
Party
Sign
In
And
Up
Constructors
constructor
new default
(
)
:
default
Returns
default
Properties
Static
Active
Directory
Active
Directory
:
typeof
ActiveDirectory
= ActiveDirectory
Static
Apple
Apple
:
typeof
Apple
= Apple
Static
Bitbucket
Bitbucket
:
typeof
Bitbucket
= Bitbucket
Static
BoxySAML
BoxySAML
:
typeof
BoxySAML
= BoxySAML
Static
Components
Override
Provider
Components
Override
Provider
:
FC
<
PropsWithChildren
<
{
components
:
ComponentOverrideMap
}
>
>
= RecipeComponentsOverrideContextProvider
Static
Discord
Discord
:
typeof
Discord
= Discord
Static
Facebook
Facebook
:
typeof
Facebook
= Facebook
Static
Github
Github
:
typeof
Github
= Github
Static
Gitlab
Gitlab
:
typeof
Gitlab
= Gitlab
Static
Google
Google
:
typeof
Google
= Google
Static
Google
Workspaces
Google
Workspaces
:
typeof
GoogleWorkspaces
= GoogleWorkspaces
Static
Linked
In
Linked
In
:
typeof
LinkedIn
= LinkedIn
Static
Okta
Okta
:
typeof
Okta
= Okta
Static
Twitter
Twitter
:
typeof
Twitter
= Twitter
Methods
Static
does
Email
Exist
does
Email
Exist
(
input
:
{
email
:
string
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
)
:
Promise
<
{
doesExist
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
}
>
Parameters
input:
{
email
:
string
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
email
:
string
Optional
options
?:
RecipeFunctionOptions
Optional
user
Context
?:
UserContext
Returns
Promise
<
{
doesExist
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
}
>
Static
email
Password
Sign
In
email
Password
Sign
In
(
input
:
{
formFields
:
{
id
:
string
;
value
:
string
}
[]
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
)
:
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
User
}
|
{
fetchResponse
:
Response
;
formFields
:
{
error
:
string
;
id
:
string
}
[]
;
status
:
"FIELD_ERROR"
}
|
{
fetchResponse
:
Response
;
status
:
"WRONG_CREDENTIALS_ERROR"
}
|
{
fetchResponse
:
Response
;
reason
:
string
;
status
:
"SIGN_IN_NOT_ALLOWED"
}
>
Parameters
input:
{
formFields
:
{
id
:
string
;
value
:
string
}
[]
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
form
Fields
:
{
id
:
string
;
value
:
string
}
[]
Optional
options
?:
RecipeFunctionOptions
Optional
user
Context
?:
UserContext
Returns
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
User
}
|
{
fetchResponse
:
Response
;
formFields
:
{
error
:
string
;
id
:
string
}
[]
;
status
:
"FIELD_ERROR"
}
|
{
fetchResponse
:
Response
;
status
:
"WRONG_CREDENTIALS_ERROR"
}
|
{
fetchResponse
:
Response
;
reason
:
string
;
status
:
"SIGN_IN_NOT_ALLOWED"
}
>
Static
email
Password
Sign
Up
email
Password
Sign
Up
(
input
:
{
formFields
:
{
id
:
string
;
value
:
string
}
[]
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
)
:
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
User
}
|
{
fetchResponse
:
Response
;
formFields
:
{
error
:
string
;
id
:
string
}
[]
;
status
:
"FIELD_ERROR"
}
|
{
fetchResponse
:
Response
;
reason
:
string
;
status
:
"SIGN_UP_NOT_ALLOWED"
}
>
Parameters
input:
{
formFields
:
{
id
:
string
;
value
:
string
}
[]
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
form
Fields
:
{
id
:
string
;
value
:
string
}
[]
Optional
options
?:
RecipeFunctionOptions
Optional
user
Context
?:
UserContext
Returns
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
User
}
|
{
fetchResponse
:
Response
;
formFields
:
{
error
:
string
;
id
:
string
}
[]
;
status
:
"FIELD_ERROR"
}
|
{
fetchResponse
:
Response
;
reason
:
string
;
status
:
"SIGN_UP_NOT_ALLOWED"
}
>
Static
get
AuthorisationURLWith
Query
Params
And
Set
State
get
AuthorisationURLWith
Query
Params
And
Set
State
(
input
:
{
frontendRedirectURI
:
string
;
options
?:
RecipeFunctionOptions
;
redirectURIOnProviderDashboard
?:
string
;
thirdPartyId
:
string
;
userContext
?:
UserContext
}
)
:
Promise
<
string
>
Parameters
input:
{
frontendRedirectURI
:
string
;
options
?:
RecipeFunctionOptions
;
redirectURIOnProviderDashboard
?:
string
;
thirdPartyId
:
string
;
userContext
?:
UserContext
}
frontend
RedirectURI
:
string
Optional
options
?:
RecipeFunctionOptions
Optional
redirectURIOn
Provider
Dashboard
?:
string
third
Party
Id
:
string
Optional
user
Context
?:
UserContext
Returns
Promise
<
string
>
Static
get
Reset
Password
Token
FromURL
get
Reset
Password
Token
FromURL
(
input
?:
{
userContext
?:
UserContext
}
)
:
string
Parameters
Optional
input:
{
userContext
?:
UserContext
}
Optional
user
Context
?:
UserContext
Returns
string
Static
get
State
And
Other
Info
From
Storage
get
State
And
Other
Info
From
Storage
<
CustomStateProperties
>
(
input
?:
{
userContext
?:
UserContext
}
)
:
undefined
|
StateObject
&
CustomStateProperties
Type Parameters
CustomStateProperties
Parameters
Optional
input:
{
userContext
?:
UserContext
}
Optional
user
Context
?:
UserContext
Returns
undefined
|
StateObject
&
CustomStateProperties
Static
init
init
(
config
?:
UserInput
)
:
RecipeInitResult
<
GetRedirectionURLContext
,
PreAndPostAPIHookAction
,
OnHandleEventContext
,
NormalisedConfig
>
Parameters
Optional
config:
UserInput
Returns
RecipeInitResult
<
GetRedirectionURLContext
,
PreAndPostAPIHookAction
,
OnHandleEventContext
,
NormalisedConfig
>
Static
redirect
To
Third
Party
Login
redirect
To
Third
Party
Login
(
input
:
{
thirdPartyId
:
string
;
userContext
?:
UserContext
}
)
:
Promise
<
{
status
:
"OK"
|
"ERROR"
}
>
Parameters
input:
{
thirdPartyId
:
string
;
userContext
?:
UserContext
}
third
Party
Id
:
string
Optional
user
Context
?:
UserContext
Returns
Promise
<
{
status
:
"OK"
|
"ERROR"
}
>
Static
send
Password
Reset
Email
send
Password
Reset
Email
(
input
:
{
formFields
:
{
id
:
string
;
value
:
string
}
[]
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
)
:
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
|
"PASSWORD_RESET_NOT_ALLOWED"
}
|
{
fetchResponse
:
Response
;
formFields
:
{
error
:
string
;
id
:
string
}
[]
;
status
:
"FIELD_ERROR"
}
>
Parameters
input:
{
formFields
:
{
id
:
string
;
value
:
string
}
[]
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
form
Fields
:
{
id
:
string
;
value
:
string
}
[]
Optional
options
?:
RecipeFunctionOptions
Optional
user
Context
?:
UserContext
Returns
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
|
"PASSWORD_RESET_NOT_ALLOWED"
}
|
{
fetchResponse
:
Response
;
formFields
:
{
error
:
string
;
id
:
string
}
[]
;
status
:
"FIELD_ERROR"
}
>
Static
sign
Out
sign
Out
(
input
?:
{
userContext
?:
UserContext
}
)
:
Promise
<
void
>
Parameters
Optional
input:
{
userContext
?:
UserContext
}
Optional
user
Context
?:
UserContext
Returns
Promise
<
void
>
Static
submit
New
Password
submit
New
Password
(
input
:
{
formFields
:
{
id
:
string
;
value
:
string
}
[]
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
)
:
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
}
|
{
fetchResponse
:
Response
;
status
:
"RESET_PASSWORD_INVALID_TOKEN_ERROR"
}
|
{
fetchResponse
:
Response
;
formFields
:
{
error
:
string
;
id
:
string
}
[]
;
status
:
"FIELD_ERROR"
}
>
Parameters
input:
{
formFields
:
{
id
:
string
;
value
:
string
}
[]
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
form
Fields
:
{
id
:
string
;
value
:
string
}
[]
Optional
options
?:
RecipeFunctionOptions
Optional
user
Context
?:
UserContext
Returns
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
}
|
{
fetchResponse
:
Response
;
status
:
"RESET_PASSWORD_INVALID_TOKEN_ERROR"
}
|
{
fetchResponse
:
Response
;
formFields
:
{
error
:
string
;
id
:
string
}
[]
;
status
:
"FIELD_ERROR"
}
>
Static
third
Party
Sign
In
And
Up
third
Party
Sign
In
And
Up
(
input
?:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
)
:
Promise
<
{
createdNewRecipeUser
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
User
}
|
{
fetchResponse
:
Response
;
status
:
"NO_EMAIL_GIVEN_BY_PROVIDER"
}
|
{
fetchResponse
:
Response
;
reason
:
string
;
status
:
"SIGN_IN_UP_NOT_ALLOWED"
}
>
Parameters
Optional
input:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
Optional
options
?:
RecipeFunctionOptions
Optional
user
Context
?:
UserContext
Returns
Promise
<
{
createdNewRecipeUser
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
User
}
|
{
fetchResponse
:
Response
;
status
:
"NO_EMAIL_GIVEN_BY_PROVIDER"
}
|
{
fetchResponse
:
Response
;
reason
:
string
;
status
:
"SIGN_IN_UP_NOT_ALLOWED"
}
>
Modules
date
Provider
index
recipe/auth
Recipe
recipe/emailpassword
recipe/emailverification
recipe/multifactorauth
recipe/multitenancy
recipe/passwordless
recipe/recipe
Module
recipe/session
recipe/thirdparty
recipe/thirdpartyemailpassword
recipe/thirdpartypasswordless
recipe/totp
recipe/userroles
default
constructor
Active
Directory
Apple
Bitbucket
BoxySAML
Components
Override
Provider
Discord
Facebook
Github
Gitlab
Google
Google
Workspaces
Linked
In
Okta
Twitter
does
Email
Exist
email
Password
Sign
In
email
Password
Sign
Up
get
AuthorisationURLWith
Query
Params
And
Set
State
get
Reset
Password
Token
FromURL
get
State
And
Other
Info
From
Storage
init
redirect
To
Third
Party
Login
send
Password
Reset
Email
sign
Out
submit
New
Password
third
Party
Sign
In
And
Up
Generated using
TypeDoc