thirdparty

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 15 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 Apple added in v0.2.0

func BeforeEach added in v0.5.2

func BeforeEach()

func Bitbucket added in v0.10.3

func Discord added in v0.3.0

func GetUserByID

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

func GetUserByIDWithContext added in v0.5.0

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

func GetUserByThirdPartyInfo

func GetUserByThirdPartyInfo(thirdPartyID, thirdPartyUserID string) (*tpmodels.User, error)

func GetUserByThirdPartyInfoWithContext added in v0.5.0

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

func GetUsersByEmail

func GetUsersByEmail(email string) ([]tpmodels.User, error)

func GetUsersByEmailWithContext added in v0.5.0

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

func GitLab added in v0.10.3

func Github

func Google

func GoogleWorkspaces added in v0.3.0

func GoogleWorkspaces(config tpmodels.GoogleWorkspacesConfig) tpmodels.TypeProvider

func Init

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

func MakeRecipeImplementation

func MakeRecipeImplementation(querier supertokens.Querier) tpmodels.RecipeInterface

func ResetForTest added in v0.4.0

func ResetForTest()

func SignInUp

func SignInUp(thirdPartyID string, thirdPartyUserID string, email string) (tpmodels.SignInUpResponse, error)

func SignInUpWithContext added in v0.5.0

func SignInUpWithContext(thirdPartyID string, thirdPartyUserID string, email string, userContext supertokens.UserContext) (tpmodels.SignInUpResponse, error)

Types

type PostDataForCustomProvider added in v0.5.2

type PostDataForCustomProvider struct {
	ThirdPartyId     string            `json:"thirdPartyId"`
	AuthCodeResponse map[string]string `json:"authCodeResponse"`
	RedirectUri      string            `json:"redirectURI"`
}

type Recipe

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

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