Skip to main content
References

ThirdParty

Classes

default

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

Constructors

Constructor
new default(): default;
Returns

default

Properties

PropertyModifierTypeDefault valueDefined in
Errorstatictypeof defaultSuperTokensErrorrecipe/thirdparty/index.ts:28
initstatic(config?) => RecipeListFunctionRecipe.initrecipe/thirdparty/index.ts:26

Methods

getProvider()
static getProvider(
tenantId,
thirdPartyId,
clientType,
userContext?): Promise<TypeProvider>;

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

Parameters
ParameterType
tenantIdstring
thirdPartyIdstring
clientTypestring
userContext?Record<string, any>
Returns

Promise<TypeProvider>

manuallyCreateOrUpdateUser()
Call Signature
static manuallyCreateOrUpdateUser(
tenantId,
thirdPartyId,
thirdPartyUserId,
email,
isVerified,
session?,
userContext?): Promise<
| {
createdNewRecipeUser: boolean;
recipeUserId: RecipeUserId;
status: "OK";
user: User;
}
| {
reason: string;
status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR";
}
| {
reason: string;
status: "SIGN_IN_UP_NOT_ALLOWED";
}>;

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

Parameters
ParameterType
tenantIdstring
thirdPartyIdstring
thirdPartyUserIdstring
emailstring
isVerifiedboolean
session?undefined
userContext?Record<string, any>
Returns

Promise< | { createdNewRecipeUser: boolean; recipeUserId: RecipeUserId; status: "OK"; user: User; } | { reason: string; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR"; } | { reason: string; status: "SIGN_IN_UP_NOT_ALLOWED"; }>

Call Signature
static manuallyCreateOrUpdateUser(
tenantId,
thirdPartyId,
thirdPartyUserId,
email,
isVerified,
session,
userContext?): Promise<
| {
createdNewRecipeUser: boolean;
recipeUserId: RecipeUserId;
status: "OK";
user: User;
}
| {
reason: string;
status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR";
}
| {
reason: string;
status: "SIGN_IN_UP_NOT_ALLOWED";
}
| {
reason: | "EMAIL_VERIFICATION_REQUIRED"
| "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"
| "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"
| "SESSION_USER_ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR";
status: "LINKING_TO_SESSION_USER_FAILED";
}>;

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

Parameters
ParameterType
tenantIdstring
thirdPartyIdstring
thirdPartyUserIdstring
emailstring
isVerifiedboolean
sessionSessionContainerInterface
userContext?Record<string, any>
Returns

Promise< | { createdNewRecipeUser: boolean; recipeUserId: RecipeUserId; status: "OK"; user: User; } | { reason: string; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR"; } | { reason: string; status: "SIGN_IN_UP_NOT_ALLOWED"; } | { reason: | "EMAIL_VERIFICATION_REQUIRED" | "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" | "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" | "SESSION_USER_ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"; status: "LINKING_TO_SESSION_USER_FAILED"; }>

Variables

Error

Error: typeof default = Wrapper.Error;

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

getProvider()

getProvider: (tenantId, thirdPartyId, clientType, userContext?) => Promise<TypeProvider> = Wrapper.getProvider;

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

Parameters

ParameterType
tenantIdstring
thirdPartyIdstring
clientTypestring
userContext?Record<string, any>

Returns

Promise<TypeProvider>

init()

init: (config?) => RecipeListFunction = Wrapper.init;

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

Parameters

ParameterType
config?TypeInput

Returns

RecipeListFunction

manuallyCreateOrUpdateUser()

manuallyCreateOrUpdateUser: {
(tenantId, thirdPartyId, thirdPartyUserId, email, isVerified, session?, userContext?): Promise<
| {
createdNewRecipeUser: boolean;
recipeUserId: RecipeUserId;
status: "OK";
user: User;
}
| {
reason: string;
status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR";
}
| {
reason: string;
status: "SIGN_IN_UP_NOT_ALLOWED";
}>;
(tenantId, thirdPartyId, thirdPartyUserId, email, isVerified, session, userContext?): Promise<
| {
createdNewRecipeUser: boolean;
recipeUserId: RecipeUserId;
status: "OK";
user: User;
}
| {
reason: string;
status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR";
}
| {
reason: string;
status: "SIGN_IN_UP_NOT_ALLOWED";
}
| {
reason: | "EMAIL_VERIFICATION_REQUIRED"
| "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"
| "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"
| "SESSION_USER_ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR";
status: "LINKING_TO_SESSION_USER_FAILED";
}>;
} = Wrapper.manuallyCreateOrUpdateUser;

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

Call Signature

(
tenantId,
thirdPartyId,
thirdPartyUserId,
email,
isVerified,
session?,
userContext?): Promise<
| {
createdNewRecipeUser: boolean;
recipeUserId: RecipeUserId;
status: "OK";
user: User;
}
| {
reason: string;
status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR";
}
| {
reason: string;
status: "SIGN_IN_UP_NOT_ALLOWED";
}>;
Parameters
ParameterType
tenantIdstring
thirdPartyIdstring
thirdPartyUserIdstring
emailstring
isVerifiedboolean
session?undefined
userContext?Record<string, any>
Returns

Promise< | { createdNewRecipeUser: boolean; recipeUserId: RecipeUserId; status: "OK"; user: User; } | { reason: string; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR"; } | { reason: string; status: "SIGN_IN_UP_NOT_ALLOWED"; }>

Call Signature

(
tenantId,
thirdPartyId,
thirdPartyUserId,
email,
isVerified,
session,
userContext?): Promise<
| {
createdNewRecipeUser: boolean;
recipeUserId: RecipeUserId;
status: "OK";
user: User;
}
| {
reason: string;
status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR";
}
| {
reason: string;
status: "SIGN_IN_UP_NOT_ALLOWED";
}
| {
reason: | "EMAIL_VERIFICATION_REQUIRED"
| "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"
| "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"
| "SESSION_USER_ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR";
status: "LINKING_TO_SESSION_USER_FAILED";
}>;
Parameters
ParameterType
tenantIdstring
thirdPartyIdstring
thirdPartyUserIdstring
emailstring
isVerifiedboolean
sessionSessionContainerInterface
userContext?Record<string, any>
Returns

Promise< | { createdNewRecipeUser: boolean; recipeUserId: RecipeUserId; status: "OK"; user: User; } | { reason: string; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR"; } | { reason: string; status: "SIGN_IN_UP_NOT_ALLOWED"; } | { reason: | "EMAIL_VERIFICATION_REQUIRED" | "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" | "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" | "SESSION_USER_ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"; status: "LINKING_TO_SESSION_USER_FAILED"; }>

References

APIInterface

Re-exports APIInterface

APIOptions

Re-exports APIOptions

RecipeInterface

Re-exports RecipeInterface

TypeProvider

Re-exports TypeProvider