Documentation ¶
Index ¶
- Constants
- func AfterEach()
- func BeforeEach()
- func CreateResetPasswordToken(userID string) (epmodels.CreateResetPasswordTokenResponse, error)
- func CreateResetPasswordTokenWithContext(userID string, userContext supertokens.UserContext) (epmodels.CreateResetPasswordTokenResponse, error)
- func EmailPasswordSignIn(email, password string) (tpepmodels.SignInResponse, error)
- func EmailPasswordSignInWithContext(email, password string, userContext supertokens.UserContext) (tpepmodels.SignInResponse, error)
- func EmailPasswordSignUp(email, password string) (tpepmodels.SignUpResponse, error)
- func EmailPasswordSignUpWithContext(email, password string, userContext supertokens.UserContext) (tpepmodels.SignUpResponse, error)
- func GetUserById(userID string) (*tpepmodels.User, error)
- func GetUserByIdWithContext(userID string, userContext supertokens.UserContext) (*tpepmodels.User, error)
- func GetUserByThirdPartyInfo(thirdPartyID string, thirdPartyUserID string) (*tpepmodels.User, error)
- func GetUserByThirdPartyInfoWithContext(thirdPartyID string, thirdPartyUserID string, ...) (*tpepmodels.User, error)
- func GetUsersByEmail(email string) ([]tpepmodels.User, error)
- func GetUsersByEmailWithContext(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(token, newPassword string) (epmodels.ResetPasswordUsingTokenResponse, error)
- func ResetPasswordUsingTokenWithContext(token, newPassword string, userContext supertokens.UserContext) (epmodels.ResetPasswordUsingTokenResponse, error)
- func SendEmail(input emaildelivery.EmailType) error
- func SendEmailWithContext(input emaildelivery.EmailType, userContext supertokens.UserContext) error
- func ThirdPartySignInUp(thirdPartyID string, thirdPartyUserID string, email string) (tpepmodels.SignInUpResponse, error)
- func ThirdPartySignInUpWithContext(thirdPartyID string, thirdPartyUserID string, email string, ...) (tpepmodels.SignInUpResponse, error)
- func UpdateEmailOrPassword(userId string, email *string, password *string, applyPasswordPolicy *bool) (epmodels.UpdateEmailOrPasswordResponse, error)
- func UpdateEmailOrPasswordWithContext(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 CreateResetPasswordToken ¶
func CreateResetPasswordToken(userID string) (epmodels.CreateResetPasswordTokenResponse, error)
func CreateResetPasswordTokenWithContext ¶ added in v0.5.0
func CreateResetPasswordTokenWithContext(userID string, userContext supertokens.UserContext) (epmodels.CreateResetPasswordTokenResponse, error)
func EmailPasswordSignIn ¶ added in v0.5.0
func EmailPasswordSignIn(email, password string) (tpepmodels.SignInResponse, error)
func EmailPasswordSignInWithContext ¶ added in v0.5.0
func EmailPasswordSignInWithContext(email, password string, userContext supertokens.UserContext) (tpepmodels.SignInResponse, error)
func EmailPasswordSignUp ¶ added in v0.5.0
func EmailPasswordSignUp(email, password string) (tpepmodels.SignUpResponse, error)
func EmailPasswordSignUpWithContext ¶ added in v0.5.0
func EmailPasswordSignUpWithContext(email, password string, userContext supertokens.UserContext) (tpepmodels.SignUpResponse, error)
func GetUserById ¶
func GetUserById(userID string) (*tpepmodels.User, error)
func GetUserByIdWithContext ¶ added in v0.5.0
func GetUserByIdWithContext(userID string, userContext supertokens.UserContext) (*tpepmodels.User, error)
func GetUserByThirdPartyInfo ¶
func GetUserByThirdPartyInfo(thirdPartyID string, thirdPartyUserID string) (*tpepmodels.User, error)
func GetUserByThirdPartyInfoWithContext ¶ added in v0.5.0
func GetUserByThirdPartyInfoWithContext(thirdPartyID string, thirdPartyUserID string, userContext supertokens.UserContext) (*tpepmodels.User, error)
func GetUsersByEmail ¶
func GetUsersByEmail(email string) ([]tpepmodels.User, error)
func GetUsersByEmailWithContext ¶ added in v0.5.0
func GetUsersByEmailWithContext(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(token, newPassword string) (epmodels.ResetPasswordUsingTokenResponse, error)
func ResetPasswordUsingTokenWithContext ¶ added in v0.5.0
func ResetPasswordUsingTokenWithContext(token, newPassword string, userContext supertokens.UserContext) (epmodels.ResetPasswordUsingTokenResponse, error)
func SendEmail ¶ added in v0.6.8
func SendEmail(input emaildelivery.EmailType) error
func SendEmailWithContext ¶ added in v0.6.8
func SendEmailWithContext(input emaildelivery.EmailType, userContext supertokens.UserContext) error
func ThirdPartySignInUp ¶ added in v0.5.0
func ThirdPartySignInUp(thirdPartyID string, thirdPartyUserID string, email string) (tpepmodels.SignInUpResponse, error)
func ThirdPartySignInUpWithContext ¶ added in v0.5.0
func ThirdPartySignInUpWithContext(thirdPartyID string, thirdPartyUserID string, email string, userContext supertokens.UserContext) (tpepmodels.SignInUpResponse, error)
func UpdateEmailOrPassword ¶
func UpdateEmailOrPasswordWithContext ¶ added in v0.5.0
func UpdateEmailOrPasswordWithContext(userId string, email *string, password *string, applyPasswordPolicy *bool, 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 // 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.