thirdpartyemailpassword

package
v0.12.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const RECIPE_ID = "thirdpartyemailpassword"

Variables

This section is empty.

Functions

func AfterEach added in v0.5.2

func AfterEach()

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 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 UpdateEmailOrPassword(userId string, email *string, password *string, applyPasswordPolicy *bool) (epmodels.UpdateEmailOrPasswordResponse, error)

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 PostDataForCustomProvider struct {
	ThirdPartyId     string            `json:"thirdPartyId"`
	AuthCodeResponse map[string]string `json:"authCodeResponse"`
	RedirectUri      string            `json:"redirectURI"`
}

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 GetRecipeInstanceOrThrowError() (*Recipe, error)

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)

Directories

Path Synopsis
emaildelivery

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL