thirdparty

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 13

Documentation

Index

Constants

View Source
const (
	AuthorisationAPI        = "/authorisationurl"
	SignInUpAPI             = "/signinup"
	AppleRedirectHandlerAPI = "/callback/apple"
)
View Source
const RECIPE_ID = "thirdparty"

Variables

This section is empty.

Functions

func AfterEach added in v0.5.2

func AfterEach()

func BeforeEach added in v0.5.2

func BeforeEach()

func GetProvider added in v0.13.0

func GetProvider(tenantId string, thirdPartyID string, clientType *string, userContext ...supertokens.UserContext) (*tpmodels.TypeProvider, error)

func GetUserByID

func GetUserByID(userID string, userContext ...supertokens.UserContext) (*tpmodels.User, error)

func GetUserByThirdPartyInfo

func GetUserByThirdPartyInfo(tenantId string, thirdPartyID, thirdPartyUserID string, userContext ...supertokens.UserContext) (*tpmodels.User, error)

func GetUsersByEmail

func GetUsersByEmail(tenantId string, email string, userContext ...supertokens.UserContext) ([]tpmodels.User, error)

func Init

func Init(config *tpmodels.TypeInput) supertokens.Recipe

func MakeRecipeImplementation

func MakeRecipeImplementation(querier supertokens.Querier, providers []tpmodels.ProviderInput) tpmodels.RecipeInterface

func ManuallyCreateOrUpdateUser added in v0.13.0

func ManuallyCreateOrUpdateUser(tenantId string, thirdPartyID string, thirdPartyUserID string, email string, userContext ...supertokens.UserContext) (tpmodels.ManuallyCreateOrUpdateUserResponse, error)

func ResetForTest added in v0.4.0

func ResetForTest()

Types

type PostDataForCustomProvider added in v0.5.2

type PostDataForCustomProvider struct {
	ThirdPartyId    string `json:"thirdPartyId"`
	RedirectURIInfo *struct {
		RedirectURIOnProviderDashboard string                 `json:"redirectURIOnProviderDashboard"`
		RedirectURIQueryParams         map[string]interface{} `json:"redirectURIQueryParams"`
	} `json:"redirectURIInfo,omitempty"`
	OAuthTokens map[string]interface{} `json:"oAuthTokens,omitempty"`
}

type Recipe

type Recipe struct {
	RecipeModule supertokens.RecipeModule
	Config       tpmodels.TypeNormalisedInput
	RecipeImpl   tpmodels.RecipeInterface
	APIImpl      tpmodels.APIInterface
	Providers    []tpmodels.ProviderInput
}

func GetRecipeInstanceOrThrowError added in v0.9.14

func GetRecipeInstanceOrThrowError() (*Recipe, error)

func MakeRecipe

func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config *tpmodels.TypeInput, emailDeliveryIngredient *emaildelivery.Ingredient, onSuperTokensAPIError func(err error, req *http.Request, res http.ResponseWriter)) (Recipe, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL