Documentation ¶
Index ¶
- Constants
- func CreateEmailVerificationToken(userID, email string) (evmodels.CreateEmailVerificationTokenResponse, error)
- func DefaultCreateAndSendCustomEmail(appInfo supertokens.NormalisedAppinfo) func(user evmodels.User, emailVerifyURLWithToken string)
- func DefaultGetEmailVerificationURL(appInfo supertokens.NormalisedAppinfo) func(evmodels.User) (string, error)
- func Init(config evmodels.TypeInput) supertokens.Recipe
- func IsEmailVerified(userID, email string) (bool, error)
- func RevokeEmailVerificationTokens(userID, email string) (evmodels.RevokeEmailVerificationTokensResponse, error)
- func UnverifyEmail(userID, email string) (evmodels.UnverifyEmailResponse, error)
- func VerifyEmailUsingToken(token string) (evmodels.VerifyEmailUsingTokenResponse, error)
- type Recipe
Constants ¶
View Source
const RECIPE_ID = "emailverification"
Variables ¶
This section is empty.
Functions ¶
func CreateEmailVerificationToken ¶
func CreateEmailVerificationToken(userID, email string) (evmodels.CreateEmailVerificationTokenResponse, error)
func DefaultCreateAndSendCustomEmail ¶
func DefaultCreateAndSendCustomEmail(appInfo supertokens.NormalisedAppinfo) func(user evmodels.User, emailVerifyURLWithToken string)
TODO: add test to see query
func DefaultGetEmailVerificationURL ¶
func DefaultGetEmailVerificationURL(appInfo supertokens.NormalisedAppinfo) func(evmodels.User) (string, error)
func IsEmailVerified ¶
func RevokeEmailVerificationTokens ¶
func RevokeEmailVerificationTokens(userID, email string) (evmodels.RevokeEmailVerificationTokensResponse, error)
func UnverifyEmail ¶
func UnverifyEmail(userID, email string) (evmodels.UnverifyEmailResponse, error)
func VerifyEmailUsingToken ¶
func VerifyEmailUsingToken(token string) (evmodels.VerifyEmailUsingTokenResponse, error)
Types ¶
type Recipe ¶
type Recipe struct { RecipeModule supertokens.RecipeModule Config evmodels.TypeNormalisedInput RecipeImpl evmodels.RecipeInterface APIImpl evmodels.APIInterface }
func MakeRecipe ¶
func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config evmodels.TypeInput, onGeneralError func(err error, req *http.Request, res http.ResponseWriter)) (Recipe, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.