Skip to main content
References

ThirdParty

Classes

default

Defined in: recipe/thirdparty/index.ts:47

Constructors

Constructor
new default(): default;
Returns

default

Properties

PropertyModifierTypeDefault valueDefined in
ActiveDirectorystaticanyActiveDirectoryrecipe/thirdparty/index.ts:143
ApplestaticanyApplerecipe/thirdparty/index.ts:134
BitbucketstaticanyBitbucketrecipe/thirdparty/index.ts:135
BoxySAMLstaticanyBoxySAMLrecipe/thirdparty/index.ts:144
ComponentsOverrideProviderstaticanyRecipeComponentsOverrideContextProviderrecipe/thirdparty/index.ts:147
DiscordstaticanyDiscordrecipe/thirdparty/index.ts:136
FacebookstaticanyFacebookrecipe/thirdparty/index.ts:141
GithubstaticanyGithubrecipe/thirdparty/index.ts:137
GitlabstaticanyGitlabrecipe/thirdparty/index.ts:138
GooglestaticanyGooglerecipe/thirdparty/index.ts:139
GoogleWorkspacesstaticanyGoogleWorkspacesrecipe/thirdparty/index.ts:140
LinkedInstaticanyLinkedInrecipe/thirdparty/index.ts:142
OktastaticanyOktarecipe/thirdparty/index.ts:145
TwitterstaticanyTwitterrecipe/thirdparty/index.ts:146

Methods

getAuthorisationURLWithQueryParamsAndSetState()
static getAuthorisationURLWithQueryParamsAndSetState(input): Promise<string>;

Defined in: recipe/thirdparty/index.ts:87

Parameters
ParameterType
input{ frontendRedirectURI: string; options?: RecipeFunctionOptions; redirectURIOnProviderDashboard?: string; shouldTryLinkingWithSessionUser?: boolean; thirdPartyId: string; userContext?: UserContext; }
input.frontendRedirectURIstring
input.options?RecipeFunctionOptions
input.redirectURIOnProviderDashboard?string
input.shouldTryLinkingWithSessionUser?boolean
input.thirdPartyIdstring
input.userContext?UserContext
Returns

Promise<string>

getProviders()
static getProviders(): object[];

Defined in: recipe/thirdparty/index.ts:124

Returns

object[]

getStateAndOtherInfoFromStorage()
static getStateAndOtherInfoFromStorage<CustomStateProperties>(input?): any;

Defined in: recipe/thirdparty/index.ts:78

Type Parameters
Type Parameter
CustomStateProperties
Parameters
ParameterType
input?{ userContext?: UserContext; }
input.userContext?UserContext
Returns

any

init()
static init(config?): any;

Defined in: recipe/thirdparty/index.ts:52

Parameters
ParameterType
config?UserInput
Returns

any

redirectToThirdPartyLogin()
static redirectToThirdPartyLogin(input): Promise<{
status: "OK" | "ERROR";
}>;

Defined in: recipe/thirdparty/index.ts:62

Parameters
ParameterType
input{ shouldTryLinkingWithSessionUser?: boolean; thirdPartyId: string; userContext?: UserContext; }
input.shouldTryLinkingWithSessionUser?boolean
input.thirdPartyIdstring
input.userContext?UserContext
Returns

Promise<{ status: "OK" | "ERROR"; }>

signInAndUp()
static signInAndUp(input?): 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";
}>;

Defined in: recipe/thirdparty/index.ts:101

Parameters
ParameterType
input?{ options?: RecipeFunctionOptions; userContext?: UserContext; }
input.options?RecipeFunctionOptions
input.userContext?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"; }>

signOut()
static signOut(input?): Promise<void>;

Defined in: recipe/thirdparty/index.ts:56

Parameters
ParameterType
input?{ userContext?: UserContext; }
input.userContext?UserContext
Returns

Promise<void>

Variables

getAuthorisationURLWithQueryParamsAndSetState()

const getAuthorisationURLWithQueryParamsAndSetState: (input) => Promise<string> = Wrapper.getAuthorisationURLWithQueryParamsAndSetState;

Defined in: recipe/thirdparty/index.ts:154

Parameters

ParameterType
input{ frontendRedirectURI: string; options?: RecipeFunctionOptions; redirectURIOnProviderDashboard?: string; shouldTryLinkingWithSessionUser?: boolean; thirdPartyId: string; userContext?: UserContext; }
input.frontendRedirectURIstring
input.options?RecipeFunctionOptions
input.redirectURIOnProviderDashboard?string
input.shouldTryLinkingWithSessionUser?boolean
input.thirdPartyIdstring
input.userContext?UserContext

Returns

Promise<string>

getProviders()

const getProviders: () => object[] = Wrapper.getProviders;

Defined in: recipe/thirdparty/index.ts:156

Returns

object[]

getStateAndOtherInfoFromStorage()

const getStateAndOtherInfoFromStorage: <CustomStateProperties>(input?) => any = Wrapper.getStateAndOtherInfoFromStorage;

Defined in: recipe/thirdparty/index.ts:153

Type Parameters

Type Parameter
CustomStateProperties

Parameters

ParameterType
input?{ userContext?: UserContext; }
input.userContext?UserContext

Returns

any

init()

const init: (config?) => any = Wrapper.init;

Defined in: recipe/thirdparty/index.ts:150

Parameters

ParameterType
config?UserInput

Returns

any

redirectToThirdPartyLogin()

const redirectToThirdPartyLogin: (input) => Promise<{
status: "OK" | "ERROR";
}> = Wrapper.redirectToThirdPartyLogin;

Defined in: recipe/thirdparty/index.ts:152

Parameters

ParameterType
input{ shouldTryLinkingWithSessionUser?: boolean; thirdPartyId: string; userContext?: UserContext; }
input.shouldTryLinkingWithSessionUser?boolean
input.thirdPartyIdstring
input.userContext?UserContext

Returns

Promise<{ status: "OK" | "ERROR"; }>

signInAndUp()

const signInAndUp: (input?) => 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";
}> = Wrapper.signInAndUp;

Defined in: recipe/thirdparty/index.ts:155

Parameters

ParameterType
input?{ options?: RecipeFunctionOptions; userContext?: UserContext; }
input.options?RecipeFunctionOptions
input.userContext?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"; }>

signOut()

const signOut: (input?) => Promise<void> = Wrapper.signOut;

Defined in: recipe/thirdparty/index.ts:151

Parameters

ParameterType
input?{ userContext?: UserContext; }
input.userContext?UserContext

Returns

Promise<void>

ThirdpartyComponentsOverrideProvider

const ThirdpartyComponentsOverrideProvider: any = Wrapper.ComponentsOverrideProvider;

Defined in: recipe/thirdparty/index.ts:157

References

ActiveDirectory

Renames and re-exports SuperTokensWrapper

Apple

Renames and re-exports SuperTokensWrapper

Bitbucket

Renames and re-exports SuperTokensWrapper

BoxySAML

Renames and re-exports SuperTokensWrapper

Discord

Renames and re-exports SuperTokensWrapper

Facebook

Renames and re-exports SuperTokensWrapper

GetRedirectionURLContext

Re-exports GetRedirectionURLContext

Github

Renames and re-exports SuperTokensWrapper

Gitlab

Renames and re-exports SuperTokensWrapper

Google

Renames and re-exports SuperTokensWrapper

GoogleWorkspaces

Renames and re-exports SuperTokensWrapper

LinkedIn

Renames and re-exports SuperTokensWrapper

Okta

Renames and re-exports SuperTokensWrapper

OnHandleEventContext

Re-exports OnHandleEventContext

PreAPIHookContext

Re-exports PreAPIHookContext

RecipeInterface

Renames and re-exports SuperTokensWrapper

Twitter

Renames and re-exports SuperTokensWrapper

UserInput

Re-exports UserInput