Documentation ¶
Index ¶
- Constants
- func AfterEach()
- func BeforeEach()
- func GetProvider(tenantId string, thirdPartyID string, clientType *string, ...) (*tpmodels.TypeProvider, error)
- func GetUserByID(userID string, userContext ...supertokens.UserContext) (*tpmodels.User, error)
- func GetUserByThirdPartyInfo(tenantId string, thirdPartyID, thirdPartyUserID string, ...) (*tpmodels.User, error)
- func GetUsersByEmail(tenantId string, email string, userContext ...supertokens.UserContext) ([]tpmodels.User, error)
- func Init(config *tpmodels.TypeInput) supertokens.Recipe
- func MakeRecipeImplementation(querier supertokens.Querier, providers []tpmodels.ProviderInput) tpmodels.RecipeInterface
- func ManuallyCreateOrUpdateUser(tenantId string, thirdPartyID string, thirdPartyUserID string, email string, ...) (tpmodels.ManuallyCreateOrUpdateUserResponse, error)
- func ResetForTest()
- type PostDataForCustomProvider
- type Recipe
Constants ¶
View Source
const ( AuthorisationAPI = "/authorisationurl" SignInUpAPI = "/signinup" AppleRedirectHandlerAPI = "/callback/apple" )
View Source
const RECIPE_ID = "thirdparty"
Variables ¶
This section is empty.
Functions ¶
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 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 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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.