Documentation ¶
Index ¶
- type APIInterface
- type APIOptions
- type CreateEmailVerificationTokenResponse
- type GenerateEmailVerifyTokenPOSTResponse
- type IsEmailVerifiedGETResponse
- type OverrideStruct
- type RecipeInterface
- type RevokeEmailVerificationTokensResponse
- type TypeInput
- type TypeNormalisedInput
- type UnverifyEmailResponse
- type User
- type VerifyEmailUsingTokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIInterface ¶
type APIInterface struct { VerifyEmailPOST *func(token string, options APIOptions, userContext supertokens.UserContext) (VerifyEmailUsingTokenResponse, error) IsEmailVerifiedGET *func(options APIOptions, userContext supertokens.UserContext) (IsEmailVerifiedGETResponse, error) GenerateEmailVerifyTokenPOST *func(options APIOptions, userContext supertokens.UserContext) (GenerateEmailVerifyTokenPOSTResponse, error) }
type APIOptions ¶
type APIOptions struct { RecipeImplementation RecipeInterface Config TypeNormalisedInput RecipeID string Req *http.Request Res http.ResponseWriter OtherHandler http.HandlerFunc }
type CreateEmailVerificationTokenResponse ¶
type CreateEmailVerificationTokenResponse struct { OK *struct { Token string } EmailAlreadyVerifiedError *struct{} }
type GenerateEmailVerifyTokenPOSTResponse ¶
type GenerateEmailVerifyTokenPOSTResponse struct { OK *struct{} EmailAlreadyVerifiedError *struct{} }
type IsEmailVerifiedGETResponse ¶
type IsEmailVerifiedGETResponse struct { OK *struct { IsVerified bool } }
type OverrideStruct ¶
type OverrideStruct struct { Functions func(originalImplementation RecipeInterface) RecipeInterface APIs func(originalImplementation APIInterface) APIInterface }
type RecipeInterface ¶
type RecipeInterface struct { CreateEmailVerificationToken *func(userID, email string, userContext supertokens.UserContext) (CreateEmailVerificationTokenResponse, error) VerifyEmailUsingToken *func(token string, userContext supertokens.UserContext) (VerifyEmailUsingTokenResponse, error) IsEmailVerified *func(userID, email string, userContext supertokens.UserContext) (bool, error) RevokeEmailVerificationTokens *func(userId, email string, userContext supertokens.UserContext) (RevokeEmailVerificationTokensResponse, error) UnverifyEmail *func(userId, email string, userContext supertokens.UserContext) (UnverifyEmailResponse, error) }
type RevokeEmailVerificationTokensResponse ¶
type RevokeEmailVerificationTokensResponse struct {
OK *struct{}
}
type TypeInput ¶
type TypeInput struct { GetEmailForUserID func(userID string, userContext supertokens.UserContext) (string, error) GetEmailVerificationURL func(user User, userContext supertokens.UserContext) (string, error) CreateAndSendCustomEmail func(user User, emailVerificationURLWithToken string, userContext supertokens.UserContext) Override *OverrideStruct }
type TypeNormalisedInput ¶
type TypeNormalisedInput struct { GetEmailForUserID func(userID string, userContext supertokens.UserContext) (string, error) GetEmailVerificationURL func(user User, userContext supertokens.UserContext) (string, error) CreateAndSendCustomEmail func(user User, emailVerificationURLWithToken string, userContext supertokens.UserContext) Override OverrideStruct }
type UnverifyEmailResponse ¶
type UnverifyEmailResponse struct {
OK *struct{}
}
type VerifyEmailUsingTokenResponse ¶
type VerifyEmailUsingTokenResponse struct { OK *struct { User User } EmailVerificationInvalidTokenError *struct{} }
Click to show internal directories.
Click to hide internal directories.