avery_05391
11/13/2023, 7:02 PM{"status":"INVALID_EMAIL_ERROR"}
curl --location --request POST 'https://xxx.aws.supertokens.io/recipe/dashboard/user' \
--header 'rid: dashboard' \
--header 'api-key: <YOUR-API-KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{"email": "<YOUR_EMAIL>","password": "<YOUR_PASSWORD>"}'
My email ends in .dev
is there some validation going on?rp_st
11/13/2023, 7:03 PMrp_st
11/13/2023, 7:04 PMpublic static boolean isValidEmail(String email) {
// We use the same regex as the backend SDK
// https://github.com/supertokens/supertokens-node/blob/master/lib/ts/recipe/emailpassword/utils.ts#L250
String regexPatternForEmail =
"((^<>()[].,;:@]+(.^<>()[].,;:@]+)*)|(.+))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}" +
".[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$";
return patternMatcher(email, regexPatternForEmail);
}
rp_st
11/13/2023, 7:05 PMrp_st
11/13/2023, 7:05 PM