Documentation ¶
Index ¶
- Constants
- func AfterEach()
- func BeforeEach()
- func CreateEmailVerificationToken(userID string) (evmodels.CreateEmailVerificationTokenResponse, error)
- func CreateEmailVerificationTokenWithContext(userID string, userContext supertokens.UserContext) (evmodels.CreateEmailVerificationTokenResponse, error)
- func CreateResetPasswordToken(userID string) (epmodels.CreateResetPasswordTokenResponse, error)
- func CreateResetPasswordTokenWithContext(userID string, userContext supertokens.UserContext) (epmodels.CreateResetPasswordTokenResponse, error)
- func GetUserByEmail(email string) (*epmodels.User, error)
- func GetUserByEmailWithContext(email string, userContext supertokens.UserContext) (*epmodels.User, error)
- func GetUserByID(userID string) (*epmodels.User, error)
- func GetUserByIDWithContext(userID string, userContext supertokens.UserContext) (*epmodels.User, error)
- func Init(config *epmodels.TypeInput) supertokens.Recipe
- func IsEmailVerified(userID string) (bool, error)
- func IsEmailVerifiedWithContext(userID string, userContext supertokens.UserContext) (bool, error)
- func MakeRecipeImplementation(querier supertokens.Querier) epmodels.RecipeInterface
- func NormaliseSignUpFormFields(formFields []epmodels.TypeInputFormField) []epmodels.NormalisedFormField
- func ResetForTest()
- func ResetPasswordUsingToken(token string, newPassword string) (epmodels.ResetPasswordUsingTokenResponse, error)
- func ResetPasswordUsingTokenWithContext(token string, newPassword string, userContext supertokens.UserContext) (epmodels.ResetPasswordUsingTokenResponse, error)
- func RevokeEmailVerificationTokens(userID string) (evmodels.RevokeEmailVerificationTokensResponse, error)
- func RevokeEmailVerificationTokensWithContext(userID string, userContext supertokens.UserContext) (evmodels.RevokeEmailVerificationTokensResponse, error)
- func SignIn(email string, password string) (epmodels.SignInResponse, error)
- func SignInWithContext(email string, password string, userContext supertokens.UserContext) (epmodels.SignInResponse, error)
- func SignUp(email string, password string) (epmodels.SignUpResponse, error)
- func SignUpWithContext(email string, password string, userContext supertokens.UserContext) (epmodels.SignUpResponse, error)
- func UnverifyEmail(userID string) (evmodels.UnverifyEmailResponse, error)
- func UnverifyEmailWithContext(userID string, userContext supertokens.UserContext) (evmodels.UnverifyEmailResponse, error)
- func UpdateEmailOrPassword(userId string, email *string, password *string) (epmodels.UpdateEmailOrPasswordResponse, error)
- func UpdateEmailOrPasswordWithContext(userId string, email *string, password *string, ...) (epmodels.UpdateEmailOrPasswordResponse, error)
- func VerifyEmailUsingToken(token string) (*epmodels.User, error)
- func VerifyEmailUsingTokenWithContext(token string, userContext supertokens.UserContext) (*epmodels.User, error)
- type Recipe
Constants ¶
View Source
const RECIPE_ID = "emailpassword"
Variables ¶
This section is empty.
Functions ¶
func BeforeEach ¶ added in v0.5.2
func BeforeEach()
func CreateEmailVerificationToken ¶
func CreateEmailVerificationToken(userID string) (evmodels.CreateEmailVerificationTokenResponse, error)
func CreateEmailVerificationTokenWithContext ¶ added in v0.5.0
func CreateEmailVerificationTokenWithContext(userID string, userContext supertokens.UserContext) (evmodels.CreateEmailVerificationTokenResponse, error)
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 GetUserByEmailWithContext ¶ added in v0.5.0
func GetUserByEmailWithContext(email string, userContext supertokens.UserContext) (*epmodels.User, error)
func GetUserByIDWithContext ¶ added in v0.5.0
func GetUserByIDWithContext(userID string, userContext supertokens.UserContext) (*epmodels.User, error)
func IsEmailVerified ¶
func IsEmailVerifiedWithContext ¶ added in v0.5.0
func IsEmailVerifiedWithContext(userID string, userContext supertokens.UserContext) (bool, error)
func MakeRecipeImplementation ¶
func MakeRecipeImplementation(querier supertokens.Querier) epmodels.RecipeInterface
func NormaliseSignUpFormFields ¶
func NormaliseSignUpFormFields(formFields []epmodels.TypeInputFormField) []epmodels.NormalisedFormField
func ResetForTest ¶ added in v0.4.0
func ResetForTest()
func ResetPasswordUsingToken ¶
func ResetPasswordUsingToken(token string, newPassword string) (epmodels.ResetPasswordUsingTokenResponse, error)
func ResetPasswordUsingTokenWithContext ¶ added in v0.5.0
func ResetPasswordUsingTokenWithContext(token string, newPassword string, userContext supertokens.UserContext) (epmodels.ResetPasswordUsingTokenResponse, error)
func RevokeEmailVerificationTokens ¶
func RevokeEmailVerificationTokens(userID string) (evmodels.RevokeEmailVerificationTokensResponse, error)
func RevokeEmailVerificationTokensWithContext ¶ added in v0.5.0
func RevokeEmailVerificationTokensWithContext(userID string, userContext supertokens.UserContext) (evmodels.RevokeEmailVerificationTokensResponse, error)
func SignInWithContext ¶ added in v0.5.0
func SignInWithContext(email string, password string, userContext supertokens.UserContext) (epmodels.SignInResponse, error)
func SignUpWithContext ¶ added in v0.5.0
func SignUpWithContext(email string, password string, userContext supertokens.UserContext) (epmodels.SignUpResponse, error)
func UnverifyEmail ¶
func UnverifyEmail(userID string) (evmodels.UnverifyEmailResponse, error)
func UnverifyEmailWithContext ¶ added in v0.5.0
func UnverifyEmailWithContext(userID string, userContext supertokens.UserContext) (evmodels.UnverifyEmailResponse, error)
func UpdateEmailOrPassword ¶
func UpdateEmailOrPasswordWithContext ¶ added in v0.5.0
func UpdateEmailOrPasswordWithContext(userId string, email *string, password *string, userContext supertokens.UserContext) (epmodels.UpdateEmailOrPasswordResponse, error)
func VerifyEmailUsingTokenWithContext ¶ added in v0.5.0
func VerifyEmailUsingTokenWithContext(token string, userContext supertokens.UserContext) (*epmodels.User, error)
Types ¶
type Recipe ¶
type Recipe struct { RecipeModule supertokens.RecipeModule Config epmodels.TypeNormalisedInput RecipeImpl epmodels.RecipeInterface APIImpl epmodels.APIInterface EmailVerificationRecipe emailverification.Recipe }
func MakeRecipe ¶
func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config *epmodels.TypeInput, emailVerificationInstance *emailverification.Recipe, onGeneralError func(err error, req *http.Request, res http.ResponseWriter)) (Recipe, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.