Documentation ¶
Index ¶
- Constants
- func Apple(config tpmodels.AppleConfig) tpmodels.TypeProvider
- func CreateEmailVerificationToken(userID string) (evmodels.CreateEmailVerificationTokenResponse, error)
- func Discord(config tpmodels.DiscordConfig) tpmodels.TypeProvider
- func Facebook(config tpmodels.FacebookConfig) tpmodels.TypeProvider
- func GetUserByID(userID string) (*tpmodels.User, error)
- func GetUserByThirdPartyInfo(thirdPartyID, thirdPartyUserID string) (*tpmodels.User, error)
- func GetUsersByEmail(email string) ([]tpmodels.User, error)
- func Github(config tpmodels.GithubConfig) tpmodels.TypeProvider
- func Google(config tpmodels.GoogleConfig) tpmodels.TypeProvider
- func GoogleWorkspaces(config tpmodels.GoogleWorkspacesConfig) tpmodels.TypeProvider
- func Init(config *tpmodels.TypeInput) supertokens.Recipe
- func IsEmailVerified(userID string) (bool, error)
- func MakeRecipeImplementation(querier supertokens.Querier) tpmodels.RecipeInterface
- func RevokeEmailVerificationTokens(userID string) (evmodels.RevokeEmailVerificationTokensResponse, error)
- func SignInUp(thirdPartyID string, thirdPartyUserID string, email tpmodels.EmailStruct) (tpmodels.SignInUpResponse, error)
- func UnverifyEmail(userID string) (evmodels.UnverifyEmailResponse, error)
- func VerifyEmailUsingToken(token string) (*tpmodels.User, error)
- type Recipe
Constants ¶
View Source
const ( AuthorisationAPI = "/authorisationurl" SignInUpAPI = "/signinup" AppleRedirectHandlerAPI = "/callback/apple" )
View Source
const RECIPE_ID = "thirdparty"
Variables ¶
This section is empty.
Functions ¶
func Apple ¶ added in v0.2.0
func Apple(config tpmodels.AppleConfig) tpmodels.TypeProvider
func CreateEmailVerificationToken ¶
func CreateEmailVerificationToken(userID string) (evmodels.CreateEmailVerificationTokenResponse, error)
func Discord ¶ added in v0.3.0
func Discord(config tpmodels.DiscordConfig) tpmodels.TypeProvider
func Facebook ¶
func Facebook(config tpmodels.FacebookConfig) tpmodels.TypeProvider
func GetUserByThirdPartyInfo ¶
func Github ¶
func Github(config tpmodels.GithubConfig) tpmodels.TypeProvider
func Google ¶
func Google(config tpmodels.GoogleConfig) tpmodels.TypeProvider
func GoogleWorkspaces ¶ added in v0.3.0
func GoogleWorkspaces(config tpmodels.GoogleWorkspacesConfig) tpmodels.TypeProvider
func IsEmailVerified ¶
func MakeRecipeImplementation ¶
func MakeRecipeImplementation(querier supertokens.Querier) tpmodels.RecipeInterface
func RevokeEmailVerificationTokens ¶
func RevokeEmailVerificationTokens(userID string) (evmodels.RevokeEmailVerificationTokensResponse, error)
func SignInUp ¶
func SignInUp(thirdPartyID string, thirdPartyUserID string, email tpmodels.EmailStruct) (tpmodels.SignInUpResponse, error)
func UnverifyEmail ¶
func UnverifyEmail(userID string) (evmodels.UnverifyEmailResponse, error)
Types ¶
type Recipe ¶
type Recipe struct { RecipeModule supertokens.RecipeModule Config tpmodels.TypeNormalisedInput RecipeImpl tpmodels.RecipeInterface APIImpl tpmodels.APIInterface EmailVerificationRecipe emailverification.Recipe Providers []tpmodels.TypeProvider }
func MakeRecipe ¶
func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config *tpmodels.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.