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
Apple
Bitbucket
Components
Override
Provider
Discord
Facebook
Github
Gitlab
Google
Methods
clear
Passwordless
Login
Attempt
Info
consume
Passwordless
Code
create
Passwordless
Code
does
Passwordless
User
Email
Exist
does
Passwordless
User
Phone
Number
Exist
generate
Third
Party
State
To
Send
ToOAuth
Provider
get
AuthorisationURLFrom
Backend
get
Passwordless
Link
Code
FromURL
get
Passwordless
Login
Attempt
Info
get
Passwordless
Pre
Auth
Session
Id
FromURL
get
Third
Party
Auth
Code
FromURL
get
Third
Party
Auth
Error
FromURL
get
Third
Party
Auth
State
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
set
Third
Party
State
And
Other
Info
To
Storage
sign
Out
third
Party
Sign
In
And
Up
verify
And
Get
Third
Party
State
Or
Throw
Error
Constructors
constructor
new default
(
)
:
default
Returns
default
Properties
Static
Apple
Apple
:
typeof
Apple
= Apple
Static
Bitbucket
Bitbucket
:
typeof
Bitbucket
= Bitbucket
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
Methods
Static
clear
Passwordless
Login
Attempt
Info
clear
Passwordless
Login
Attempt
Info
(
input
?:
{
userContext
?:
any
}
)
:
Promise
<
void
>
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
Promise
<
void
>
Static
consume
Passwordless
Code
consume
Passwordless
Code
(
input
?:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
any
;
userInputCode
:
string
}
|
{
options
?:
RecipeFunctionOptions
;
userContext
?:
any
}
)
:
Promise
<
{
createdNewUser
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
PasswordlessUser
}
|
{
failedCodeInputAttemptCount
:
number
;
fetchResponse
:
Response
;
maximumCodeInputAttempts
:
number
;
status
:
"INCORRECT_USER_INPUT_CODE_ERROR"
|
"EXPIRED_USER_INPUT_CODE_ERROR"
}
|
{
fetchResponse
:
Response
;
status
:
"RESTART_FLOW_ERROR"
}
>
Parameters
Optional
input:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
any
;
userInputCode
:
string
}
|
{
options
?:
RecipeFunctionOptions
;
userContext
?:
any
}
Returns
Promise
<
{
createdNewUser
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
PasswordlessUser
}
|
{
failedCodeInputAttemptCount
:
number
;
fetchResponse
:
Response
;
maximumCodeInputAttempts
:
number
;
status
:
"INCORRECT_USER_INPUT_CODE_ERROR"
|
"EXPIRED_USER_INPUT_CODE_ERROR"
}
|
{
fetchResponse
:
Response
;
status
:
"RESTART_FLOW_ERROR"
}
>
Static
create
Passwordless
Code
create
Passwordless
Code
(
input
:
{
email
:
string
;
options
?:
RecipeFunctionOptions
;
userContext
?:
any
}
|
{
options
?:
RecipeFunctionOptions
;
phoneNumber
:
string
;
userContext
?:
any
}
)
:
Promise
<
{
deviceId
:
string
;
fetchResponse
:
Response
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
;
status
:
"OK"
}
>
Parameters
input:
{
email
:
string
;
options
?:
RecipeFunctionOptions
;
userContext
?:
any
}
|
{
options
?:
RecipeFunctionOptions
;
phoneNumber
:
string
;
userContext
?:
any
}
Returns
Promise
<
{
deviceId
:
string
;
fetchResponse
:
Response
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
;
status
:
"OK"
}
>
Static
does
Passwordless
User
Email
Exist
does
Passwordless
User
Email
Exist
(
input
:
{
email
:
string
;
options
?:
RecipeFunctionOptions
;
userContext
?:
any
}
)
:
Promise
<
{
doesExist
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
}
>
Parameters
input:
{
email
:
string
;
options
?:
RecipeFunctionOptions
;
userContext
?:
any
}
email
:
string
Optional
options
?:
RecipeFunctionOptions
Optional
user
Context
?:
any
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
?:
any
}
)
:
Promise
<
{
doesExist
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
}
>
Parameters
input:
{
options
?:
RecipeFunctionOptions
;
phoneNumber
:
string
;
userContext
?:
any
}
Optional
options
?:
RecipeFunctionOptions
phone
Number
:
string
Optional
user
Context
?:
any
Returns
Promise
<
{
doesExist
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
}
>
Static
generate
Third
Party
State
To
Send
ToOAuth
Provider
generate
Third
Party
State
To
Send
ToOAuth
Provider
(
input
?:
{
userContext
?:
any
}
)
:
string
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
string
Static
get
AuthorisationURLFrom
Backend
get
AuthorisationURLFrom
Backend
(
input
:
{
options
?:
RecipeFunctionOptions
;
providerId
:
string
;
userContext
?:
any
}
)
:
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
;
url
:
string
}
>
Parameters
input:
{
options
?:
RecipeFunctionOptions
;
providerId
:
string
;
userContext
?:
any
}
Optional
options
?:
RecipeFunctionOptions
provider
Id
:
string
Optional
user
Context
?:
any
Returns
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
;
url
:
string
}
>
Static
get
Passwordless
Link
Code
FromURL
get
Passwordless
Link
Code
FromURL
(
input
?:
{
userContext
?:
any
}
)
:
string
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
string
Static
get
Passwordless
Login
Attempt
Info
get
Passwordless
Login
Attempt
Info
<
CustomLoginAttemptInfoProperties
>
(
input
?:
{
userContext
?:
any
}
)
:
Promise
<
undefined
|
{
deviceId
:
string
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
}
&
CustomLoginAttemptInfoProperties
>
Type Parameters
CustomLoginAttemptInfoProperties
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
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
?:
any
}
)
:
string
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
string
Static
get
Third
Party
Auth
Code
FromURL
get
Third
Party
Auth
Code
FromURL
(
input
?:
{
userContext
?:
any
}
)
:
string
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
string
Static
get
Third
Party
Auth
Error
FromURL
get
Third
Party
Auth
Error
FromURL
(
input
?:
{
userContext
?:
any
}
)
:
undefined
|
string
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
undefined
|
string
Static
get
Third
Party
Auth
State
FromURL
get
Third
Party
Auth
State
FromURL
(
input
?:
{
userContext
?:
any
}
)
:
string
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
string
Static
get
Third
Party
AuthorisationURLWith
Query
Params
And
Set
State
get
Third
Party
AuthorisationURLWith
Query
Params
And
Set
State
(
input
:
{
authorisationURL
:
string
;
options
?:
RecipeFunctionOptions
;
providerClientId
?:
string
;
providerId
:
string
;
userContext
?:
any
}
)
:
Promise
<
string
>
Parameters
input:
{
authorisationURL
:
string
;
options
?:
RecipeFunctionOptions
;
providerClientId
?:
string
;
providerId
:
string
;
userContext
?:
any
}
authorisationURL
:
string
Optional
options
?:
RecipeFunctionOptions
Optional
provider
Client
Id
?:
string
provider
Id
:
string
Optional
user
Context
?:
any
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
?:
any
}
)
:
undefined
|
StateObject
&
CustomStateProperties
Type Parameters
CustomStateProperties
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
undefined
|
StateObject
&
CustomStateProperties
Static
init
init
(
config
:
UserInput
)
:
RecipeInitResult
<
GetRedirectionURLContext
,
PreAndPostAPIHookAction
,
OnHandleEventContext
,
NormalisedConfig
>
Parameters
config:
UserInput
Returns
RecipeInitResult
<
GetRedirectionURLContext
,
PreAndPostAPIHookAction
,
OnHandleEventContext
,
NormalisedConfig
>
Static
redirect
To
Third
Party
Login
redirect
To
Third
Party
Login
(
input
:
{
thirdPartyId
:
string
;
userContext
?:
any
}
)
:
Promise
<
{
status
:
"OK"
|
"ERROR"
}
>
Parameters
input:
{
thirdPartyId
:
string
;
userContext
?:
any
}
third
Party
Id
:
string
Optional
user
Context
?:
any
Returns
Promise
<
{
status
:
"OK"
|
"ERROR"
}
>
Static
resend
Passwordless
Code
resend
Passwordless
Code
(
input
?:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
any
}
)
:
Promise
<
{
fetchResponse
:
Response
;
status
:
"OK"
|
"RESTART_FLOW_ERROR"
}
>
Parameters
Optional
input:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
any
}
Optional
options
?:
RecipeFunctionOptions
Optional
user
Context
?:
any
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
?:
any
}
)
:
Promise
<
void
>
Type Parameters
CustomStateProperties
Parameters
input:
{
attemptInfo
:
{
deviceId
:
string
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
}
&
CustomStateProperties
;
userContext
?:
any
}
attempt
Info
:
{
deviceId
:
string
;
flowType
:
PasswordlessFlowType
;
preAuthSessionId
:
string
}
&
CustomStateProperties
Optional
user
Context
?:
any
Returns
Promise
<
void
>
Static
set
Third
Party
State
And
Other
Info
To
Storage
set
Third
Party
State
And
Other
Info
To
Storage
<
CustomStateProperties
>
(
input
:
{
state
:
StateObject
&
CustomStateProperties
;
userContext
?:
any
}
)
:
Promise
<
void
>
Type Parameters
CustomStateProperties
Parameters
input:
{
state
:
StateObject
&
CustomStateProperties
;
userContext
?:
any
}
state
:
StateObject
&
CustomStateProperties
Optional
user
Context
?:
any
Returns
Promise
<
void
>
Static
sign
Out
sign
Out
(
input
?:
{
userContext
?:
any
}
)
:
Promise
<
void
>
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
Promise
<
void
>
Static
third
Party
Sign
In
And
Up
third
Party
Sign
In
And
Up
(
input
?:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
any
}
)
:
Promise
<
{
createdNewUser
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
User
}
|
{
fetchResponse
:
Response
;
status
:
"NO_EMAIL_GIVEN_BY_PROVIDER"
}
>
Parameters
Optional
input:
{
options
?:
RecipeFunctionOptions
;
userContext
?:
any
}
Optional
options
?:
RecipeFunctionOptions
Optional
user
Context
?:
any
Returns
Promise
<
{
createdNewUser
:
boolean
;
fetchResponse
:
Response
;
status
:
"OK"
;
user
:
User
}
|
{
fetchResponse
:
Response
;
status
:
"NO_EMAIL_GIVEN_BY_PROVIDER"
}
>
Static
verify
And
Get
Third
Party
State
Or
Throw
Error
verify
And
Get
Third
Party
State
Or
Throw
Error
<
CustomStateProperties
>
(
input
:
{
stateFromAuthProvider
:
undefined
|
string
;
stateObjectFromStorage
:
undefined
|
StateObject
&
CustomStateProperties
;
userContext
?:
any
}
)
:
Promise
<
StateObject
&
CustomStateProperties
>
Type Parameters
CustomStateProperties
Parameters
input:
{
stateFromAuthProvider
:
undefined
|
string
;
stateObjectFromStorage
:
undefined
|
StateObject
&
CustomStateProperties
;
userContext
?:
any
}
state
From
Auth
Provider
:
undefined
|
string
state
Object
From
Storage
:
undefined
|
StateObject
&
CustomStateProperties
Optional
user
Context
?:
any
Returns
Promise
<
StateObject
&
CustomStateProperties
>
Modules
index
recipe/auth
Recipe
recipe/emailpassword
recipe/emailverification
recipe/passwordless
recipe/recipe
Module
recipe/session
recipe/thirdparty
recipe/thirdpartyemailpassword
recipe/thirdpartypasswordless
recipe/userroles
default
constructor
Apple
Bitbucket
Components
Override
Provider
Discord
Facebook
Github
Gitlab
Google
clear
Passwordless
Login
Attempt
Info
consume
Passwordless
Code
create
Passwordless
Code
does
Passwordless
User
Email
Exist
does
Passwordless
User
Phone
Number
Exist
generate
Third
Party
State
To
Send
ToOAuth
Provider
get
AuthorisationURLFrom
Backend
get
Passwordless
Link
Code
FromURL
get
Passwordless
Login
Attempt
Info
get
Passwordless
Pre
Auth
Session
Id
FromURL
get
Third
Party
Auth
Code
FromURL
get
Third
Party
Auth
Error
FromURL
get
Third
Party
Auth
State
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
set
Third
Party
State
And
Other
Info
To
Storage
sign
Out
third
Party
Sign
In
And
Up
verify
And
Get
Third
Party
State
Or
Throw
Error
Generated using
TypeDoc