Documentation ¶
Index ¶
- Constants
- func AfterEach()
- func BeforeEach()
- func CreateResetPasswordLink(tenantId string, userID string, userContext ...supertokens.UserContext) (epmodels.CreateResetPasswordLinkResponse, error)
- func CreateResetPasswordToken(tenantId string, userID string, userContext ...supertokens.UserContext) (epmodels.CreateResetPasswordTokenResponse, error)
- func EmailPasswordSignIn(tenantId string, email, password string, ...) (tpepmodels.SignInResponse, error)
- func EmailPasswordSignUp(tenantId string, email, password string, ...) (tpepmodels.SignUpResponse, error)
- func GetUserById(userID string, userContext ...supertokens.UserContext) (*tpepmodels.User, error)
- func GetUserByThirdPartyInfo(tenantId string, thirdPartyID string, thirdPartyUserID string, ...) (*tpepmodels.User, error)
- func GetUsersByEmail(tenantId string, email string, userContext ...supertokens.UserContext) ([]tpepmodels.User, error)
- func Init(config *tpepmodels.TypeInput) supertokens.Recipe
- func MakeSMTPService(config emaildelivery.SMTPServiceConfig) *emaildelivery.EmailDeliveryInterface
- func ResetForTest()
- func ResetPasswordUsingToken(tenantId string, token, newPassword string, ...) (epmodels.ResetPasswordUsingTokenResponse, error)
- func SendEmail(input emaildelivery.EmailType, userContext ...supertokens.UserContext) error
- func SendResetPasswordEmail(tenantId string, userID string, userContext ...supertokens.UserContext) (epmodels.SendResetPasswordEmailResponse, error)
- func ThirdPartyGetProvider(tenantId string, thirdPartyID string, clientType *string, ...) (*tpmodels.TypeProvider, error)
- func ThirdPartyManuallyCreateOrUpdateUser(tenantId string, thirdPartyID string, thirdPartyUserID string, email string, ...) (tpepmodels.ManuallyCreateOrUpdateUserResponse, error)
- func UpdateEmailOrPassword(userId string, email *string, password *string, applyPasswordPolicy *bool, ...) (epmodels.UpdateEmailOrPasswordResponse, error)
- type PostDataForCustomProvider
- type Recipe
Constants ¶
View Source
const RECIPE_ID = "thirdpartyemailpassword"
Variables ¶
This section is empty.
Functions ¶
func BeforeEach ¶ added in v0.5.2
func BeforeEach()
func CreateResetPasswordLink ¶ added in v0.13.0
func CreateResetPasswordLink(tenantId string, userID string, userContext ...supertokens.UserContext) (epmodels.CreateResetPasswordLinkResponse, error)
func CreateResetPasswordToken ¶
func CreateResetPasswordToken(tenantId string, userID string, userContext ...supertokens.UserContext) (epmodels.CreateResetPasswordTokenResponse, error)
func EmailPasswordSignIn ¶ added in v0.5.0
func EmailPasswordSignIn(tenantId string, email, password string, userContext ...supertokens.UserContext) (tpepmodels.SignInResponse, error)
func EmailPasswordSignUp ¶ added in v0.5.0
func EmailPasswordSignUp(tenantId string, email, password string, userContext ...supertokens.UserContext) (tpepmodels.SignUpResponse, error)
func GetUserById ¶
func GetUserById(userID string, userContext ...supertokens.UserContext) (*tpepmodels.User, error)
func GetUserByThirdPartyInfo ¶
func GetUserByThirdPartyInfo(tenantId string, thirdPartyID string, thirdPartyUserID string, userContext ...supertokens.UserContext) (*tpepmodels.User, error)
func GetUsersByEmail ¶
func GetUsersByEmail(tenantId string, email string, userContext ...supertokens.UserContext) ([]tpepmodels.User, error)
func Init ¶
func Init(config *tpepmodels.TypeInput) supertokens.Recipe
func MakeSMTPService ¶ added in v0.7.0
func MakeSMTPService(config emaildelivery.SMTPServiceConfig) *emaildelivery.EmailDeliveryInterface
func ResetForTest ¶ added in v0.4.0
func ResetForTest()
func ResetPasswordUsingToken ¶
func ResetPasswordUsingToken(tenantId string, token, newPassword string, userContext ...supertokens.UserContext) (epmodels.ResetPasswordUsingTokenResponse, error)
func SendEmail ¶ added in v0.6.8
func SendEmail(input emaildelivery.EmailType, userContext ...supertokens.UserContext) error
func SendResetPasswordEmail ¶ added in v0.13.0
func SendResetPasswordEmail(tenantId string, userID string, userContext ...supertokens.UserContext) (epmodels.SendResetPasswordEmailResponse, error)
func ThirdPartyGetProvider ¶ added in v0.13.0
func ThirdPartyGetProvider(tenantId string, thirdPartyID string, clientType *string, userContext ...supertokens.UserContext) (*tpmodels.TypeProvider, error)
func ThirdPartyManuallyCreateOrUpdateUser ¶ added in v0.13.0
func ThirdPartyManuallyCreateOrUpdateUser(tenantId string, thirdPartyID string, thirdPartyUserID string, email string, userContext ...supertokens.UserContext) (tpepmodels.ManuallyCreateOrUpdateUserResponse, error)
func UpdateEmailOrPassword ¶
func UpdateEmailOrPassword(userId string, email *string, password *string, applyPasswordPolicy *bool, tenantIdForPasswordPolicy *string, userContext ...supertokens.UserContext) (epmodels.UpdateEmailOrPasswordResponse, error)
Types ¶
type PostDataForCustomProvider ¶ added in v0.6.8
type Recipe ¶
type Recipe struct { RecipeModule supertokens.RecipeModule Config tpepmodels.TypeNormalisedInput RecipeImpl tpepmodels.RecipeInterface APIImpl tpepmodels.APIInterface EmailDelivery emaildelivery.Ingredient GetEmailPasswordRecipe func() *emailpassword.Recipe // contains filtered or unexported fields }
func GetRecipeInstance ¶ added in v0.9.9
func GetRecipeInstance() *Recipe
func GetRecipeInstanceOrThrowError ¶ added in v0.9.14
func MakeRecipe ¶
func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config *tpepmodels.TypeInput, emailVerificationInstance *emailverification.Recipe, thirdPartyInstance *thirdparty.Recipe, emailPasswordInstance *emailpassword.Recipe, emailDeliveryIngredient *emaildelivery.Ingredient, onSuperTokensAPIError func(err error, req *http.Request, res http.ResponseWriter)) (Recipe, error)
Click to show internal directories.
Click to hide internal directories.