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/thirdpartypasswordless
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
clear
Passwordless
Login
Attempt
Info
consume
Passwordless
Code
create
Passwordless
Code
does
Passwordless
User
Email
Exist
does
Passwordless
User
Phone
Number
Exist
get
Passwordless
Link
Code
FromURL
get
Passwordless
Login
Attempt
Info
get
Passwordless
Pre
Auth
Session
Id
FromURL
get
Third
Party
AuthorisationURLWith
Query
Params
And
Set
State
get
Third
Party
State
And
Other
Info
From
Storage
init
redirect
To
Third
Party
Login
resend
Passwordless
Code
set
Passwordless
Login
Attempt
Info
sign
Out
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
clear
Passwordless
Login
Attempt
Info
clear
Passwordless
Login
Attempt
Info
(
input
?:
{
userContext
?:
UserContext
}
)
:
Promise
<
void
>
Parameters
Optional
input:
{
userContext
?:
UserContext
}
Optional
user
Context
?:
UserContext
Returns
Promise
<
void
>
Static
consume
Passwordless
Code
consume
Passwordless
Code
(
input
?:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
;
userInputCode
:
string
}
|
{
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
)
:
Promise
<
{
createdNewRecipeUser
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
User
}
|
{
failedCodeInputAttemptCount
:
number
;
fetchResponse
:
Response
;
maximumCodeInputAttempts
:
number
;
status
:
"INCORRECT_USER_INPUT_CODE_ERROR"
|
"EXPIRED_USER_INPUT_CODE_ERROR"
}
|
{
fetchResponse
:
Response
;
status
:
"RESTART_FLOW_ERROR"
}
|
{
fetchResponse
:
Response
;
reason
:
string
;
status
:
"SIGN_IN_UP_NOT_ALLOWED"
}
>
Parameters
Optional
input:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
;
userInputCode
:
string
}
|
{
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
Returns
Promise
<
{
createdNewRecipeUser
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
User
}
|
{
failedCodeInputAttemptCount
:
number
;
fetchResponse
:
Response
;
maximumCodeInputAttempts
:
number
;
status
:
"INCORRECT_USER_INPUT_CODE_ERROR"
|
"EXPIRED_USER_INPUT_CODE_ERROR"
}
|
{
fetchResponse
:
Response
;
status
:
"RESTART_FLOW_ERROR"
}
|
{
fetchResponse
:
Response
;
reason
:
string
;
status
:
"SIGN_IN_UP_NOT_ALLOWED"
}
>
Static
create
Passwordless
Code
create
Passwordless
Code
(
input
:
{
email
:
string
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
|
{
options
?:
RecipeFunctionOptions
;
phoneNumber
:
string
;
userContext
?:
UserContext
}
)
:
Promise
<
{
deviceId
:
string
;
fetchResponse
:
Response
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
;
status
:
"OK"
}
|
{
fetchResponse
:
Response
;
reason
:
string
;
status
:
"SIGN_IN_UP_NOT_ALLOWED"
}
>
Parameters
input:
{
email
:
string
;
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
|
{
options
?:
RecipeFunctionOptions
;
phoneNumber
:
string
;
userContext
?:
UserContext
}
Returns
Promise
<
{
deviceId
:
string
;
fetchResponse
:
Response
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
;
status
:
"OK"
}
|
{
fetchResponse
:
Response
;
reason
:
string
;
status
:
"SIGN_IN_UP_NOT_ALLOWED"
}
>
Static
does
Passwordless
User
Email
Exist
does
Passwordless
User
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
does
Passwordless
User
Phone
Number
Exist
does
Passwordless
User
Phone
Number
Exist
(
input
:
{
options
?:
RecipeFunctionOptions
;
phoneNumber
:
string
;
userContext
?:
UserContext
}
)
:
Promise
<
{
doesExist
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
}
>
Parameters
input:
{
options
?:
RecipeFunctionOptions
;
phoneNumber
:
string
;
userContext
?:
UserContext
}
Optional
options
?:
RecipeFunctionOptions
phone
Number
:
string
Optional
user
Context
?:
UserContext
Returns
Promise
<
{
doesExist
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
}
>
Static
get
Passwordless
Link
Code
FromURL
get
Passwordless
Link
Code
FromURL
(
input
?:
{
userContext
?:
UserContext
}
)
:
string
Parameters
Optional
input:
{
userContext
?:
UserContext
}
Optional
user
Context
?:
UserContext
Returns
string
Static
get
Passwordless
Login
Attempt
Info
get
Passwordless
Login
Attempt
Info
<
CustomLoginAttemptInfoProperties
>
(
input
?:
{
userContext
?:
UserContext
}
)
:
Promise
<
undefined
|
{
deviceId
:
string
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
}
&
CustomLoginAttemptInfoProperties
>
Type Parameters
CustomLoginAttemptInfoProperties
Parameters
Optional
input:
{
userContext
?:
UserContext
}
Optional
user
Context
?:
UserContext
Returns
Promise
<
undefined
|
{
deviceId
:
string
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
}
&
CustomLoginAttemptInfoProperties
>
Static
get
Passwordless
Pre
Auth
Session
Id
FromURL
get
Passwordless
Pre
Auth
Session
Id
FromURL
(
input
?:
{
userContext
?:
UserContext
}
)
:
string
Parameters
Optional
input:
{
userContext
?:
UserContext
}
Optional
user
Context
?:
UserContext
Returns
string
Static
get
Third
Party
AuthorisationURLWith
Query
Params
And
Set
State
get
Third
Party
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
Third
Party
State
And
Other
Info
From
Storage
get
Third
Party
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
<
never
,
PreAndPostAPIHookAction
,
OnHandleEventContext
,
NormalisedConfig
>
Parameters
config:
UserInput
Returns
RecipeInitResult
<
never
,
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
resend
Passwordless
Code
resend
Passwordless
Code
(
input
?:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
)
:
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
|
"RESTART_FLOW_ERROR"
}
>
Parameters
Optional
input:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
UserContext
}
Optional
options
?:
RecipeFunctionOptions
Optional
user
Context
?:
UserContext
Returns
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
|
"RESTART_FLOW_ERROR"
}
>
Static
set
Passwordless
Login
Attempt
Info
set
Passwordless
Login
Attempt
Info
<
CustomStateProperties
>
(
input
:
{
attemptInfo
:
{
deviceId
:
string
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
}
&
CustomStateProperties
;
userContext
?:
UserContext
}
)
:
Promise
<
void
>
Type Parameters
CustomStateProperties
Parameters
input:
{
attemptInfo
:
{
deviceId
:
string
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
}
&
CustomStateProperties
;
userContext
?:
UserContext
}
attempt
Info
:
{
deviceId
:
string
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
}
&
CustomStateProperties
Optional
user
Context
?:
UserContext
Returns
Promise
<
void
>
Static
sign
Out
sign
Out
(
input
?:
{
userContext
?:
UserContext
}
)
:
Promise
<
void
>
Parameters
Optional
input:
{
userContext
?:
UserContext
}
Optional
user
Context
?:
UserContext
Returns
Promise
<
void
>
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
clear
Passwordless
Login
Attempt
Info
consume
Passwordless
Code
create
Passwordless
Code
does
Passwordless
User
Email
Exist
does
Passwordless
User
Phone
Number
Exist
get
Passwordless
Link
Code
FromURL
get
Passwordless
Login
Attempt
Info
get
Passwordless
Pre
Auth
Session
Id
FromURL
get
Third
Party
AuthorisationURLWith
Query
Params
And
Set
State
get
Third
Party
State
And
Other
Info
From
Storage
init
redirect
To
Third
Party
Login
resend
Passwordless
Code
set
Passwordless
Login
Attempt
Info
sign
Out
third
Party
Sign
In
And
Up
Generated using
TypeDoc