Documentation ¶
Index ¶
- Constants
- func AfterEach()
- func BeforeEach()
- func ConsumeCodeWithLinkCode(linkCode string, preAuthSessionID string) (tplmodels.ConsumeCodeResponse, error)
- func ConsumeCodeWithLinkCodeWithContext(linkCode string, preAuthSessionID string, userContext supertokens.UserContext) (tplmodels.ConsumeCodeResponse, error)
- func ConsumeCodeWithUserInputCode(deviceID string, userInputCode string, preAuthSessionID string) (tplmodels.ConsumeCodeResponse, error)
- func ConsumeCodeWithUserInputCodeWithContext(deviceID string, userInputCode string, preAuthSessionID string, ...) (tplmodels.ConsumeCodeResponse, error)
- func CreateCodeWithEmail(email string, userInputCode *string) (plessmodels.CreateCodeResponse, error)
- func CreateCodeWithEmailWithContext(email string, userInputCode *string, userContext supertokens.UserContext) (plessmodels.CreateCodeResponse, error)
- func CreateCodeWithPhoneNumber(phoneNumber string, userInputCode *string) (plessmodels.CreateCodeResponse, error)
- func CreateCodeWithPhoneNumberWithContext(phoneNumber string, userInputCode *string, userContext supertokens.UserContext) (plessmodels.CreateCodeResponse, error)
- func CreateEmailVerificationToken(userID string) (evmodels.CreateEmailVerificationTokenResponse, error)
- func CreateEmailVerificationTokenWithContext(userID string, userContext supertokens.UserContext) (evmodels.CreateEmailVerificationTokenResponse, error)
- func CreateMagicLinkByEmail(email string) (string, error)
- func CreateMagicLinkByEmailWithContext(email string, userContext supertokens.UserContext) (string, error)
- func CreateMagicLinkByPhoneNumber(phoneNumber string) (string, error)
- func CreateMagicLinkByPhoneNumberWithContext(phoneNumber string, userContext supertokens.UserContext) (string, error)
- func CreateNewCodeForDevice(deviceID string, userInputCode *string) (plessmodels.ResendCodeResponse, error)
- func CreateNewCodeForDeviceWithContext(deviceID string, userInputCode *string, userContext supertokens.UserContext) (plessmodels.ResendCodeResponse, error)
- func DeleteEmailForPasswordlessUser(userID string) (plessmodels.DeleteUserResponse, error)
- func DeleteEmailForPasswordlessUserWithContext(userID string, userContext supertokens.UserContext) (plessmodels.DeleteUserResponse, error)
- func DeletePhoneNumberForUser(userID string) (plessmodels.DeleteUserResponse, error)
- func DeletePhoneNumberForUserWithContext(userID string, userContext supertokens.UserContext) (plessmodels.DeleteUserResponse, error)
- func GetUserByID(userID string) (*tplmodels.User, error)
- func GetUserByIDWithContext(userID string, userContext supertokens.UserContext) (*tplmodels.User, error)
- func GetUserById(userID string) (*tplmodels.User, error)
- func GetUserByIdWithContext(userID string, userContext supertokens.UserContext) (*tplmodels.User, error)
- func GetUserByPhoneNumber(phoneNumber string) (*tplmodels.User, error)
- func GetUserByPhoneNumberWithContext(phoneNumber string, userContext supertokens.UserContext) (*tplmodels.User, error)
- func GetUserByThirdPartyInfo(thirdPartyID string, thirdPartyUserID string) (*tplmodels.User, error)
- func GetUserByThirdPartyInfoWithContext(thirdPartyID string, thirdPartyUserID string, ...) (*tplmodels.User, error)
- func GetUsersByEmail(email string) ([]tplmodels.User, error)
- func GetUsersByEmailWithContext(email string, userContext supertokens.UserContext) ([]tplmodels.User, error)
- func Init(config tplmodels.TypeInput) supertokens.Recipe
- func IsEmailVerified(userID string) (bool, error)
- func IsEmailVerifiedWithContext(userID string, userContext supertokens.UserContext) (bool, error)
- func ListCodesByDeviceID(deviceID string) (*plessmodels.DeviceType, error)
- func ListCodesByDeviceIDWithContext(deviceID string, userContext supertokens.UserContext) (*plessmodels.DeviceType, error)
- func ListCodesByEmail(email string) ([]plessmodels.DeviceType, error)
- func ListCodesByEmailWithContext(email string, userContext supertokens.UserContext) ([]plessmodels.DeviceType, error)
- func ListCodesByPhoneNumber(phoneNumber string) ([]plessmodels.DeviceType, error)
- func ListCodesByPhoneNumberWithContext(phoneNumber string, userContext supertokens.UserContext) ([]plessmodels.DeviceType, error)
- func ListCodesByPreAuthSessionID(preAuthSessionID string) (*plessmodels.DeviceType, error)
- func ListCodesByPreAuthSessionIDWithContext(preAuthSessionID string, userContext supertokens.UserContext) (*plessmodels.DeviceType, error)
- func PasswordlessSignInUpByEmail(email string) (struct{ ... }, error)
- func PasswordlessSignInUpByEmailWithContext(email string, userContext supertokens.UserContext) (struct{ ... }, error)
- func PasswordlessSignInUpByPhoneNumber(phoneNumber string) (struct{ ... }, error)
- func PasswordlessSignInUpByPhoneNumberWithContext(phoneNumber string, userContext supertokens.UserContext) (struct{ ... }, error)
- func ResetForTest()
- func RevokeAllCodesByEmail(email string) error
- func RevokeAllCodesByEmailWithContext(email string, userContext supertokens.UserContext) error
- func RevokeAllCodesByPhoneNumber(phoneNumber string) error
- func RevokeAllCodesByPhoneNumberWithContext(phoneNumber string, userContext supertokens.UserContext) error
- func RevokeCode(codeID string) error
- func RevokeCodeWithContext(codeID string, userContext supertokens.UserContext) 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 tplmodels.EmailStruct) (tplmodels.ThirdPartySignInUp, error)
- func ThirdPartySignInUpWithContext(thirdPartyID string, thirdPartyUserID string, email tplmodels.EmailStruct, ...) (tplmodels.ThirdPartySignInUp, error)
- func UnverifyEmail(userID string) (evmodels.UnverifyEmailResponse, error)
- func UnverifyEmailWithContext(userID string, userContext supertokens.UserContext) (evmodels.UnverifyEmailResponse, error)
- func UpdatePasswordlessUser(userID string, email *string, phoneNumber *string) (plessmodels.UpdateUserResponse, error)
- func UpdatePasswordlessUserWithContext(userID string, email *string, phoneNumber *string, ...) (plessmodels.UpdateUserResponse, error)
- func VerifyEmailUsingToken(token string) (*tplmodels.User, error)
- func VerifyEmailUsingTokenWithContext(token string, userContext supertokens.UserContext) (*tplmodels.User, error)
- type Recipe
Constants ¶
View Source
const RECIPE_ID = "thirdpartypasswordless"
Variables ¶
This section is empty.
Functions ¶
func BeforeEach ¶ added in v0.5.7
func BeforeEach()
func ConsumeCodeWithLinkCode ¶
func ConsumeCodeWithLinkCode(linkCode string, preAuthSessionID string) (tplmodels.ConsumeCodeResponse, error)
func ConsumeCodeWithLinkCodeWithContext ¶ added in v0.6.0
func ConsumeCodeWithLinkCodeWithContext(linkCode string, preAuthSessionID string, userContext supertokens.UserContext) (tplmodels.ConsumeCodeResponse, error)
func ConsumeCodeWithUserInputCodeWithContext ¶ added in v0.6.0
func ConsumeCodeWithUserInputCodeWithContext(deviceID string, userInputCode string, preAuthSessionID string, userContext supertokens.UserContext) (tplmodels.ConsumeCodeResponse, error)
func CreateCodeWithEmail ¶
func CreateCodeWithEmail(email string, userInputCode *string) (plessmodels.CreateCodeResponse, error)
func CreateCodeWithEmailWithContext ¶ added in v0.6.0
func CreateCodeWithEmailWithContext(email string, userInputCode *string, userContext supertokens.UserContext) (plessmodels.CreateCodeResponse, error)
func CreateCodeWithPhoneNumber ¶
func CreateCodeWithPhoneNumber(phoneNumber string, userInputCode *string) (plessmodels.CreateCodeResponse, error)
func CreateCodeWithPhoneNumberWithContext ¶ added in v0.6.0
func CreateCodeWithPhoneNumberWithContext(phoneNumber string, userInputCode *string, userContext supertokens.UserContext) (plessmodels.CreateCodeResponse, error)
func CreateEmailVerificationToken ¶
func CreateEmailVerificationToken(userID string) (evmodels.CreateEmailVerificationTokenResponse, error)
func CreateEmailVerificationTokenWithContext ¶ added in v0.6.0
func CreateEmailVerificationTokenWithContext(userID string, userContext supertokens.UserContext) (evmodels.CreateEmailVerificationTokenResponse, error)
func CreateMagicLinkByEmail ¶
func CreateMagicLinkByEmailWithContext ¶ added in v0.6.0
func CreateMagicLinkByEmailWithContext(email string, userContext supertokens.UserContext) (string, error)
func CreateMagicLinkByPhoneNumberWithContext ¶ added in v0.6.0
func CreateMagicLinkByPhoneNumberWithContext(phoneNumber string, userContext supertokens.UserContext) (string, error)
func CreateNewCodeForDevice ¶
func CreateNewCodeForDevice(deviceID string, userInputCode *string) (plessmodels.ResendCodeResponse, error)
func CreateNewCodeForDeviceWithContext ¶ added in v0.6.0
func CreateNewCodeForDeviceWithContext(deviceID string, userInputCode *string, userContext supertokens.UserContext) (plessmodels.ResendCodeResponse, error)
func DeleteEmailForPasswordlessUser ¶ added in v0.5.7
func DeleteEmailForPasswordlessUser(userID string) (plessmodels.DeleteUserResponse, error)
func DeleteEmailForPasswordlessUserWithContext ¶ added in v0.6.0
func DeleteEmailForPasswordlessUserWithContext(userID string, userContext supertokens.UserContext) (plessmodels.DeleteUserResponse, error)
func DeletePhoneNumberForUser ¶ added in v0.5.7
func DeletePhoneNumberForUser(userID string) (plessmodels.DeleteUserResponse, error)
func DeletePhoneNumberForUserWithContext ¶ added in v0.6.0
func DeletePhoneNumberForUserWithContext(userID string, userContext supertokens.UserContext) (plessmodels.DeleteUserResponse, error)
func GetUserByIDWithContext ¶ added in v0.6.0
func GetUserByIDWithContext(userID string, userContext supertokens.UserContext) (*tplmodels.User, error)
func GetUserByIdWithContext ¶ added in v0.6.0
func GetUserByIdWithContext(userID string, userContext supertokens.UserContext) (*tplmodels.User, error)
func GetUserByPhoneNumberWithContext ¶ added in v0.6.0
func GetUserByPhoneNumberWithContext(phoneNumber string, userContext supertokens.UserContext) (*tplmodels.User, error)
func GetUserByThirdPartyInfo ¶
func GetUserByThirdPartyInfoWithContext ¶ added in v0.6.0
func GetUserByThirdPartyInfoWithContext(thirdPartyID string, thirdPartyUserID string, userContext supertokens.UserContext) (*tplmodels.User, error)
func GetUsersByEmailWithContext ¶ added in v0.6.0
func GetUsersByEmailWithContext(email string, userContext supertokens.UserContext) ([]tplmodels.User, error)
func IsEmailVerified ¶
func IsEmailVerifiedWithContext ¶ added in v0.6.0
func IsEmailVerifiedWithContext(userID string, userContext supertokens.UserContext) (bool, error)
func ListCodesByDeviceID ¶
func ListCodesByDeviceID(deviceID string) (*plessmodels.DeviceType, error)
func ListCodesByDeviceIDWithContext ¶ added in v0.6.0
func ListCodesByDeviceIDWithContext(deviceID string, userContext supertokens.UserContext) (*plessmodels.DeviceType, error)
func ListCodesByEmail ¶
func ListCodesByEmail(email string) ([]plessmodels.DeviceType, error)
func ListCodesByEmailWithContext ¶ added in v0.6.0
func ListCodesByEmailWithContext(email string, userContext supertokens.UserContext) ([]plessmodels.DeviceType, error)
func ListCodesByPhoneNumber ¶
func ListCodesByPhoneNumber(phoneNumber string) ([]plessmodels.DeviceType, error)
func ListCodesByPhoneNumberWithContext ¶ added in v0.6.0
func ListCodesByPhoneNumberWithContext(phoneNumber string, userContext supertokens.UserContext) ([]plessmodels.DeviceType, error)
func ListCodesByPreAuthSessionID ¶
func ListCodesByPreAuthSessionID(preAuthSessionID string) (*plessmodels.DeviceType, error)
func ListCodesByPreAuthSessionIDWithContext ¶ added in v0.6.0
func ListCodesByPreAuthSessionIDWithContext(preAuthSessionID string, userContext supertokens.UserContext) (*plessmodels.DeviceType, error)
func PasswordlessSignInUpByEmailWithContext ¶ added in v0.6.0
func PasswordlessSignInUpByEmailWithContext(email string, userContext supertokens.UserContext) (struct { PreAuthSessionID string CreatedNewUser bool User tplmodels.User }, error)
func PasswordlessSignInUpByPhoneNumberWithContext ¶ added in v0.6.0
func PasswordlessSignInUpByPhoneNumberWithContext(phoneNumber string, userContext supertokens.UserContext) (struct { PreAuthSessionID string CreatedNewUser bool User tplmodels.User }, error)
func ResetForTest ¶
func ResetForTest()
func RevokeAllCodesByEmail ¶
func RevokeAllCodesByEmailWithContext ¶ added in v0.6.0
func RevokeAllCodesByEmailWithContext(email string, userContext supertokens.UserContext) error
func RevokeAllCodesByPhoneNumberWithContext ¶ added in v0.6.0
func RevokeAllCodesByPhoneNumberWithContext(phoneNumber string, userContext supertokens.UserContext) error
func RevokeCode ¶
func RevokeCodeWithContext ¶ added in v0.6.0
func RevokeCodeWithContext(codeID string, userContext supertokens.UserContext) error
func RevokeEmailVerificationTokens ¶
func RevokeEmailVerificationTokens(userID string) (evmodels.RevokeEmailVerificationTokensResponse, error)
func RevokeEmailVerificationTokensWithContext ¶ added in v0.6.0
func RevokeEmailVerificationTokensWithContext(userID string, userContext supertokens.UserContext) (evmodels.RevokeEmailVerificationTokensResponse, error)
func ThirdPartySignInUp ¶
func ThirdPartySignInUp(thirdPartyID string, thirdPartyUserID string, email tplmodels.EmailStruct) (tplmodels.ThirdPartySignInUp, error)
func ThirdPartySignInUpWithContext ¶ added in v0.6.0
func ThirdPartySignInUpWithContext(thirdPartyID string, thirdPartyUserID string, email tplmodels.EmailStruct, userContext supertokens.UserContext) (tplmodels.ThirdPartySignInUp, error)
func UnverifyEmail ¶
func UnverifyEmail(userID string) (evmodels.UnverifyEmailResponse, error)
func UnverifyEmailWithContext ¶ added in v0.6.0
func UnverifyEmailWithContext(userID string, userContext supertokens.UserContext) (evmodels.UnverifyEmailResponse, error)
func UpdatePasswordlessUser ¶
func UpdatePasswordlessUser(userID string, email *string, phoneNumber *string) (plessmodels.UpdateUserResponse, error)
func UpdatePasswordlessUserWithContext ¶ added in v0.6.0
func UpdatePasswordlessUserWithContext(userID string, email *string, phoneNumber *string, userContext supertokens.UserContext) (plessmodels.UpdateUserResponse, error)
func VerifyEmailUsingTokenWithContext ¶ added in v0.6.0
func VerifyEmailUsingTokenWithContext(token string, userContext supertokens.UserContext) (*tplmodels.User, error)
Types ¶
type Recipe ¶
type Recipe struct { RecipeModule supertokens.RecipeModule Config tplmodels.TypeNormalisedInput EmailVerificationRecipe emailverification.Recipe RecipeImpl tplmodels.RecipeInterface APIImpl tplmodels.APIInterface // contains filtered or unexported fields }
func MakeRecipe ¶
func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config tplmodels.TypeInput, emailVerificationInstance *emailverification.Recipe, thirdPartyInstance *thirdparty.Recipe, passwordlessInstance *passwordless.Recipe, onGeneralError func(err error, req *http.Request, res http.ResponseWriter)) (Recipe, error)
Click to show internal directories.
Click to hide internal directories.