@@ -27,63 +27,63 @@ func Init(config *epmodels.TypeInput) supertokens.Recipe {
2727}
2828
2929func SignUpWithContext (email string , password string , userContext supertokens.UserContext ) (epmodels.SignUpResponse , error ) {
30- instance , err := getRecipeInstanceOrThrowError ()
30+ instance , err := GetRecipeInstanceOrThrowError ()
3131 if err != nil {
3232 return epmodels.SignUpResponse {}, err
3333 }
3434 return (* instance .RecipeImpl .SignUp )(email , password , userContext )
3535}
3636
3737func SignInWithContext (email string , password string , userContext supertokens.UserContext ) (epmodels.SignInResponse , error ) {
38- instance , err := getRecipeInstanceOrThrowError ()
38+ instance , err := GetRecipeInstanceOrThrowError ()
3939 if err != nil {
4040 return epmodels.SignInResponse {}, err
4141 }
4242 return (* instance .RecipeImpl .SignIn )(email , password , userContext )
4343}
4444
4545func GetUserByIDWithContext (userID string , userContext supertokens.UserContext ) (* epmodels.User , error ) {
46- instance , err := getRecipeInstanceOrThrowError ()
46+ instance , err := GetRecipeInstanceOrThrowError ()
4747 if err != nil {
4848 return nil , err
4949 }
5050 return (* instance .RecipeImpl .GetUserByID )(userID , userContext )
5151}
5252
5353func GetUserByEmailWithContext (email string , userContext supertokens.UserContext ) (* epmodels.User , error ) {
54- instance , err := getRecipeInstanceOrThrowError ()
54+ instance , err := GetRecipeInstanceOrThrowError ()
5555 if err != nil {
5656 return nil , err
5757 }
5858 return (* instance .RecipeImpl .GetUserByEmail )(email , userContext )
5959}
6060
6161func CreateResetPasswordTokenWithContext (userID string , userContext supertokens.UserContext ) (epmodels.CreateResetPasswordTokenResponse , error ) {
62- instance , err := getRecipeInstanceOrThrowError ()
62+ instance , err := GetRecipeInstanceOrThrowError ()
6363 if err != nil {
6464 return epmodels.CreateResetPasswordTokenResponse {}, err
6565 }
6666 return (* instance .RecipeImpl .CreateResetPasswordToken )(userID , userContext )
6767}
6868
6969func ResetPasswordUsingTokenWithContext (token string , newPassword string , userContext supertokens.UserContext ) (epmodels.ResetPasswordUsingTokenResponse , error ) {
70- instance , err := getRecipeInstanceOrThrowError ()
70+ instance , err := GetRecipeInstanceOrThrowError ()
7171 if err != nil {
7272 return epmodels.ResetPasswordUsingTokenResponse {}, nil
7373 }
7474 return (* instance .RecipeImpl .ResetPasswordUsingToken )(token , newPassword , userContext )
7575}
7676
7777func UpdateEmailOrPasswordWithContext (userId string , email * string , password * string , userContext supertokens.UserContext ) (epmodels.UpdateEmailOrPasswordResponse , error ) {
78- instance , err := getRecipeInstanceOrThrowError ()
78+ instance , err := GetRecipeInstanceOrThrowError ()
7979 if err != nil {
8080 return epmodels.UpdateEmailOrPasswordResponse {}, nil
8181 }
8282 return (* instance .RecipeImpl .UpdateEmailOrPassword )(userId , email , password , userContext )
8383}
8484
8585func SendEmailWithContext (input emaildelivery.EmailType , userContext supertokens.UserContext ) error {
86- instance , err := getRecipeInstanceOrThrowError ()
86+ instance , err := GetRecipeInstanceOrThrowError ()
8787 if err != nil {
8888 return err
8989 }
0 commit comments