Kvist
05/15/2023, 4:44 PMFunctions: func(originalImplementation epmodels.RecipeInterface) epmodels.RecipeInterface {
originalSignInCode := *originalImplementation.SignIn
(*originalImplementation.SignIn) = func(email string, password string, userContext supertokens.UserContext) (epmodels.SignInResponse, error) {
if strings.Contains(email, "@X.com") {
}
return originalSignInCode(email, password, userContext)
}
return originalImplementation
},
But not sure how I would implement it actually. Can anyone help? 🙂rp
05/15/2023, 4:49 PMKvist
05/15/2023, 5:22 PMrp
05/15/2023, 5:22 PM