@@ -28,79 +28,79 @@ func Init(config *tpepmodels.TypeInput) supertokens.Recipe {
2828}
2929
3030func ThirdPartySignInUpWithContext (thirdPartyID string , thirdPartyUserID string , email string , userContext supertokens.UserContext ) (tpepmodels.SignInUpResponse , error ) {
31- instance , err := getRecipeInstanceOrThrowError ()
31+ instance , err := GetRecipeInstanceOrThrowError ()
3232 if err != nil {
3333 return tpepmodels.SignInUpResponse {}, err
3434 }
3535 return (* instance .RecipeImpl .ThirdPartySignInUp )(thirdPartyID , thirdPartyUserID , email , userContext )
3636}
3737
3838func GetUserByThirdPartyInfoWithContext (thirdPartyID string , thirdPartyUserID string , userContext supertokens.UserContext ) (* tpepmodels.User , error ) {
39- instance , err := getRecipeInstanceOrThrowError ()
39+ instance , err := GetRecipeInstanceOrThrowError ()
4040 if err != nil {
4141 return nil , err
4242 }
4343 return (* instance .RecipeImpl .GetUserByThirdPartyInfo )(thirdPartyID , thirdPartyUserID , userContext )
4444}
4545
4646func EmailPasswordSignUpWithContext (email , password string , userContext supertokens.UserContext ) (tpepmodels.SignUpResponse , error ) {
47- instance , err := getRecipeInstanceOrThrowError ()
47+ instance , err := GetRecipeInstanceOrThrowError ()
4848 if err != nil {
4949 return tpepmodels.SignUpResponse {}, err
5050 }
5151 return (* instance .RecipeImpl .EmailPasswordSignUp )(email , password , userContext )
5252}
5353
5454func EmailPasswordSignInWithContext (email , password string , userContext supertokens.UserContext ) (tpepmodels.SignInResponse , error ) {
55- instance , err := getRecipeInstanceOrThrowError ()
55+ instance , err := GetRecipeInstanceOrThrowError ()
5656 if err != nil {
5757 return tpepmodels.SignInResponse {}, err
5858 }
5959 return (* instance .RecipeImpl .EmailPasswordSignIn )(email , password , userContext )
6060}
6161
6262func GetUserByIdWithContext (userID string , userContext supertokens.UserContext ) (* tpepmodels.User , error ) {
63- instance , err := getRecipeInstanceOrThrowError ()
63+ instance , err := GetRecipeInstanceOrThrowError ()
6464 if err != nil {
6565 return nil , err
6666 }
6767 return (* instance .RecipeImpl .GetUserByID )(userID , userContext )
6868}
6969
7070func GetUsersByEmailWithContext (email string , userContext supertokens.UserContext ) ([]tpepmodels.User , error ) {
71- instance , err := getRecipeInstanceOrThrowError ()
71+ instance , err := GetRecipeInstanceOrThrowError ()
7272 if err != nil {
7373 return nil , err
7474 }
7575 return (* instance .RecipeImpl .GetUsersByEmail )(email , userContext )
7676}
7777
7878func CreateResetPasswordTokenWithContext (userID string , userContext supertokens.UserContext ) (epmodels.CreateResetPasswordTokenResponse , error ) {
79- instance , err := getRecipeInstanceOrThrowError ()
79+ instance , err := GetRecipeInstanceOrThrowError ()
8080 if err != nil {
8181 return epmodels.CreateResetPasswordTokenResponse {}, err
8282 }
8383 return (* instance .RecipeImpl .CreateResetPasswordToken )(userID , userContext )
8484}
8585
8686func ResetPasswordUsingTokenWithContext (token , newPassword string , userContext supertokens.UserContext ) (epmodels.ResetPasswordUsingTokenResponse , error ) {
87- instance , err := getRecipeInstanceOrThrowError ()
87+ instance , err := GetRecipeInstanceOrThrowError ()
8888 if err != nil {
8989 return epmodels.ResetPasswordUsingTokenResponse {}, err
9090 }
9191 return (* instance .RecipeImpl .ResetPasswordUsingToken )(token , newPassword , userContext )
9292}
9393
9494func UpdateEmailOrPasswordWithContext (userId string , email * string , password * string , userContext supertokens.UserContext ) (epmodels.UpdateEmailOrPasswordResponse , error ) {
95- instance , err := getRecipeInstanceOrThrowError ()
95+ instance , err := GetRecipeInstanceOrThrowError ()
9696 if err != nil {
9797 return epmodels.UpdateEmailOrPasswordResponse {}, err
9898 }
9999 return (* instance .RecipeImpl .UpdateEmailOrPassword )(userId , email , password , userContext )
100100}
101101
102102func SendEmailWithContext (input emaildelivery.EmailType , userContext supertokens.UserContext ) error {
103- instance , err := getRecipeInstanceOrThrowError ()
103+ instance , err := GetRecipeInstanceOrThrowError ()
104104 if err != nil {
105105 return err
106106 }
0 commit comments