Documentation
¶
Index ¶
- Constants
- func CreateEmailVerificationToken(userID string) (evmodels.CreateEmailVerificationTokenResponse, error)
- func CreateResetPasswordToken(userID string) (epmodels.CreateResetPasswordTokenResponse, error)
- func GetUserById(userID string) (*tpepmodels.User, error)
- func GetUserByThirdPartyInfo(thirdPartyID string, thirdPartyUserID string, email tpmodels.EmailStruct) (*tpepmodels.User, error)
- func GetUsersByEmail(email string) ([]tpepmodels.User, error)
- func Init(config *tpepmodels.TypeInput) supertokens.Recipe
- func IsEmailVerified(userID string) (bool, error)
- func ResetPasswordUsingToken(token, newPassword string) (epmodels.ResetPasswordUsingTokenResponse, error)
- func RevokeEmailVerificationTokens(userID string) (evmodels.RevokeEmailVerificationTokensResponse, error)
- func SignIn(email, password string) (tpepmodels.SignInResponse, error)
- func SignInUp(thirdPartyID string, thirdPartyUserID string, email tpepmodels.EmailStruct) (tpepmodels.SignInUpResponse, error)
- func SignUp(email, password string) (tpepmodels.SignUpResponse, error)
- func UnverifyEmail(userID string) (evmodels.UnverifyEmailResponse, error)
- func UpdateEmailOrPassword(userId string, email *string, password *string) (epmodels.UpdateEmailOrPasswordResponse, error)
- func VerifyEmailUsingToken(token string) (*tpepmodels.User, error)
- type Recipe
Constants ¶
View Source
const RECIPE_ID = "thirdpartyemailpassword"
Variables ¶
This section is empty.
Functions ¶
func CreateEmailVerificationToken ¶
func CreateEmailVerificationToken(userID string) (evmodels.CreateEmailVerificationTokenResponse, error)
func CreateResetPasswordToken ¶
func CreateResetPasswordToken(userID string) (epmodels.CreateResetPasswordTokenResponse, error)
func GetUserById ¶
func GetUserById(userID string) (*tpepmodels.User, error)
func GetUserByThirdPartyInfo ¶
func GetUserByThirdPartyInfo(thirdPartyID string, thirdPartyUserID string, email tpmodels.EmailStruct) (*tpepmodels.User, error)
func GetUsersByEmail ¶
func GetUsersByEmail(email string) ([]tpepmodels.User, error)
func Init ¶
func Init(config *tpepmodels.TypeInput) supertokens.Recipe
func IsEmailVerified ¶
func ResetPasswordUsingToken ¶
func ResetPasswordUsingToken(token, newPassword string) (epmodels.ResetPasswordUsingTokenResponse, error)
func RevokeEmailVerificationTokens ¶
func RevokeEmailVerificationTokens(userID string) (evmodels.RevokeEmailVerificationTokensResponse, error)
func SignIn ¶
func SignIn(email, password string) (tpepmodels.SignInResponse, error)
func SignInUp ¶
func SignInUp(thirdPartyID string, thirdPartyUserID string, email tpepmodels.EmailStruct) (tpepmodels.SignInUpResponse, error)
func SignUp ¶
func SignUp(email, password string) (tpepmodels.SignUpResponse, error)
func UnverifyEmail ¶
func UnverifyEmail(userID string) (evmodels.UnverifyEmailResponse, error)
func UpdateEmailOrPassword ¶
func VerifyEmailUsingToken ¶
func VerifyEmailUsingToken(token string) (*tpepmodels.User, error)
Types ¶
type Recipe ¶
type Recipe struct { RecipeModule supertokens.RecipeModule Config tpepmodels.TypeNormalisedInput EmailVerificationRecipe emailverification.Recipe RecipeImpl tpepmodels.RecipeInterface APIImpl tpepmodels.APIInterface // contains filtered or unexported fields }
func MakeRecipe ¶
func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config *tpepmodels.TypeInput, emailVerificationInstance *emailverification.Recipe, thirdPartyInstance *thirdparty.Recipe, emailPasswordInstance *emailpassword.Recipe, onGeneralError func(err error, req *http.Request, res http.ResponseWriter)) (Recipe, error)
Click to show internal directories.
Click to hide internal directories.