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
Active
Directory
Apple
Bitbucket
BoxySAML
Components
Override
Provider
Discord
Facebook
Github
Gitlab
Google
Google
Workspaces
Linked
In
Okta
Twitter
Methods
get
AuthorisationURLWith
Query
Params
And
Set
State
get
State
And
Other
Info
From
Storage
init
redirect
To
Third
Party
Login
sign
In
And
Up
sign
Out
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
get
AuthorisationURLWith
Query
Params
And
Set
State
get
AuthorisationURLWith
Query
Params
And
Set
State
(
input
:
{
frontendRedirectURI
:
string
;
options
?:
RecipeFunctionOptions
;
redirectURIOnProviderDashboard
?:
string
;
shouldTryLinkingWithSessionUser
?:
boolean
;
thirdPartyId
:
string
;
userContext
?:
UserContext
}
)
:
Promise
<
string
>
Parameters
input:
{
frontendRedirectURI
:
string
;
options
?:
RecipeFunctionOptions
;
redirectURIOnProviderDashboard
?:
string
;
shouldTryLinkingWithSessionUser
?:
boolean
;
thirdPartyId
:
string
;
userContext
?:
UserContext
}
frontend
RedirectURI
:
string
Optional
options
?:
RecipeFunctionOptions
Optional
redirectURIOn
Provider
Dashboard
?:
string
Optional
should
Try
Linking
With
Session
User
?:
boolean
third
Party
Id
:
string
Optional
user
Context
?:
UserContext
Returns
Promise
<
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
<
never
,
PreAndPostAPIHookAction
,
{
action
:
"SUCCESS"
;
createdNewSession
:
boolean
;
isNewRecipeUser
:
boolean
;
user
:
User
;
userContext
:
UserContext
}
,
NormalisedConfig
>
Parameters
Optional
config:
UserInput
Returns
RecipeInitResult
<
never
,
PreAndPostAPIHookAction
,
{
action
:
"SUCCESS"
;
createdNewSession
:
boolean
;
isNewRecipeUser
:
boolean
;
user
:
User
;
userContext
:
UserContext
}
,
NormalisedConfig
>
Static
redirect
To
Third
Party
Login
redirect
To
Third
Party
Login
(
input
:
{
shouldTryLinkingWithSessionUser
?:
boolean
;
thirdPartyId
:
string
;
userContext
?:
UserContext
}
)
:
Promise
<
{
status
:
"OK"
|
"ERROR"
}
>
Parameters
input:
{
shouldTryLinkingWithSessionUser
?:
boolean
;
thirdPartyId
:
string
;
userContext
?:
UserContext
}
Optional
should
Try
Linking
With
Session
User
?:
boolean
third
Party
Id
:
string
Optional
user
Context
?:
UserContext
Returns
Promise
<
{
status
:
"OK"
|
"ERROR"
}
>
Static
sign
In
And
Up
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"
}
>
Static
sign
Out
sign
Out
(
input
?:
{
userContext
?:
UserContext
}
)
:
Promise
<
void
>
Parameters
Optional
input:
{
userContext
?:
UserContext
}
Optional
user
Context
?:
UserContext
Returns
Promise
<
void
>
Modules
date
Provider
index
recipe/auth
Recipe
recipe/emailpassword
recipe/emailverification
recipe/multifactorauth
recipe/multitenancy
recipe/oauth2provider
recipe/passwordless
recipe/recipe
Module
recipe/session
recipe/thirdparty
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
get
AuthorisationURLWith
Query
Params
And
Set
State
get
State
And
Other
Info
From
Storage
init
redirect
To
Third
Party
Login
sign
In
And
Up
sign
Out
Generated using
TypeDoc