thirdparty

package
v0.0.0-...-bd06354 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

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

func AfterEach()

func BeforeEach

func BeforeEach()

func GetProvider

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

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

func ResetForTest

func ResetForTest()

Types

type PostDataForCustomProvider

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

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