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/thirdparty
default
Class default
Hierarchy
default
Index
Constructors
constructor
Properties
Apple
Facebook
Github
Google
Sign
In
And
Up
Callback
Theme
Sign
In
And
Up
Theme
Methods
Sign
In
And
Up
Sign
In
And
Up
Callback
generate
State
To
Send
ToOAuth
Provider
get
Auth
Code
FromURL
get
Auth
Error
FromURL
get
Auth
State
FromURL
get
AuthorisationURLFrom
Backend
get
AuthorisationURLWith
Query
Params
And
Set
State
get
State
And
Other
Info
From
Storage
init
redirect
To
Third
Party
Login
set
State
And
Other
Info
To
Storage
sign
In
And
Up
sign
Out
verify
And
Get
State
Or
Throw
Error
Constructors
constructor
new default
(
)
:
default
Returns
default
Properties
Static
Apple
Apple
:
typeof
Apple
= Apple
Static
Facebook
Facebook
:
typeof
Facebook
= Facebook
Static
Github
Github
:
typeof
Github
= Github
Static
Google
Google
:
typeof
Google
= Google
Static
Sign
In
And
Up
Callback
Theme
Sign
In
And
Up
Callback
Theme
:
ComponentType
<
{}
>
= SignInAndUpCallbackTheme
Static
Sign
In
And
Up
Theme
Sign
In
And
Up
Theme
:
FC
<
SignInAndUpThemeProps
>
= SignInAndUpTheme
Methods
Static
Sign
In
And
Up
Sign
In
And
Up
(
prop
?:
PropsWithChildren
<
{
redirectOnSessionExists
?:
boolean
;
userContext
?:
any
}
>
)
:
Element
Parameters
prop:
PropsWithChildren
<
{
redirectOnSessionExists
?:
boolean
;
userContext
?:
any
}
>
= {}
Returns
Element
Static
Sign
In
And
Up
Callback
Sign
In
And
Up
Callback
(
prop
?:
any
)
:
Element
Parameters
Optional
prop:
any
Returns
Element
Static
generate
State
To
Send
ToOAuth
Provider
generate
State
To
Send
ToOAuth
Provider
(
input
?:
{
userContext
?:
any
}
)
:
string
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
string
Static
get
Auth
Code
FromURL
get
Auth
Code
FromURL
(
input
?:
{
userContext
?:
any
}
)
:
string
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
string
Static
get
Auth
Error
FromURL
get
Auth
Error
FromURL
(
input
?:
{
userContext
?:
any
}
)
:
undefined
|
string
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
undefined
|
string
Static
get
Auth
State
FromURL
get
Auth
State
FromURL
(
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
AuthorisationURLWith
Query
Params
And
Set
State
get
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
State
And
Other
Info
From
Storage
get
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
)
:
CreateRecipeFunction
<
GetRedirectionURLContext
,
PreAndPostAPIHookAction
,
OnHandleEventContext
,
NormalisedConfig
>
Parameters
config:
UserInput
Returns
CreateRecipeFunction
<
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
set
State
And
Other
Info
To
Storage
set
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
In
And
Up
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
sign
Out
sign
Out
(
input
?:
{
userContext
?:
any
}
)
:
Promise
<
void
>
Parameters
Optional
input:
{
userContext
?:
any
}
Optional
user
Context
?:
any
Returns
Promise
<
void
>
Static
verify
And
Get
State
Or
Throw
Error
verify
And
Get
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/passwordless
recipe/recipe
Module
recipe/session
recipe/thirdparty
recipe/thirdpartyemailpassword
recipe/thirdpartypasswordless
recipe/userroles
default
constructor
Apple
Facebook
Github
Google
Sign
In
And
Up
Callback
Theme
Sign
In
And
Up
Theme
Sign
In
And
Up
Sign
In
And
Up
Callback
generate
State
To
Send
ToOAuth
Provider
get
Auth
Code
FromURL
get
Auth
Error
FromURL
get
Auth
State
FromURL
get
AuthorisationURLFrom
Backend
get
AuthorisationURLWith
Query
Params
And
Set
State
get
State
And
Other
Info
From
Storage
init
redirect
To
Third
Party
Login
set
State
And
Other
Info
To
Storage
sign
In
And
Up
sign
Out
verify
And
Get
State
Or
Throw
Error
Generated using
TypeDoc