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 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, email tpmodels.EmailStruct) (*tpepmodels.User, error)
- func GetUserByThirdPartyInfoWithContext(thirdPartyID string, thirdPartyUserID string, email tpmodels.EmailStruct, ...) (*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 IsEmailVerified(userID string) (bool, error)
- func IsEmailVerifiedWithContext(userID string, userContext supertokens.UserContext) (bool, error)
- func ResetForTest()
- func ResetPasswordUsingToken(token, newPassword string) (epmodels.ResetPasswordUsingTokenResponse, error)
- func ResetPasswordUsingTokenWithContext(token, 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 ThirdPartySignInUp(thirdPartyID string, thirdPartyUserID string, email tpepmodels.EmailStruct) (tpepmodels.SignInUpResponse, error)
- func ThirdPartySignInUpWithContext(thirdPartyID string, thirdPartyUserID string, email tpepmodels.EmailStruct, ...) (tpepmodels.SignInUpResponse, 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) (*tpepmodels.User, error)
- func VerifyEmailUsingTokenWithContext(token string, userContext supertokens.UserContext) (*tpepmodels.User, error)
- 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 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 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, email tpmodels.EmailStruct) (*tpepmodels.User, error)
func GetUserByThirdPartyInfoWithContext ¶ added in v0.5.0
func GetUserByThirdPartyInfoWithContext(thirdPartyID string, thirdPartyUserID string, email tpmodels.EmailStruct, 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 IsEmailVerified ¶
func IsEmailVerifiedWithContext ¶ added in v0.5.0
func IsEmailVerifiedWithContext(userID string, userContext supertokens.UserContext) (bool, error)
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 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 ThirdPartySignInUp ¶ added in v0.5.0
func ThirdPartySignInUp(thirdPartyID string, thirdPartyUserID string, email tpepmodels.EmailStruct) (tpepmodels.SignInUpResponse, error)
func ThirdPartySignInUpWithContext ¶ added in v0.5.0
func ThirdPartySignInUpWithContext(thirdPartyID string, thirdPartyUserID string, email tpepmodels.EmailStruct, userContext supertokens.UserContext) (tpepmodels.SignInUpResponse, 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 VerifyEmailUsingToken ¶
func VerifyEmailUsingToken(token string) (*tpepmodels.User, error)
func VerifyEmailUsingTokenWithContext ¶ added in v0.5.0
func VerifyEmailUsingTokenWithContext(token string, userContext supertokens.UserContext) (*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.