Getting email_address_invalid from supabase
I have default supabase, dont have any extra settings. When trying to sign up with email I get
{
"code": 400,
"error_code": "email_address_invalid",
"msg": "Email address \"example@gmail.com\" is invalid"
}
My request:
{
"email": "example@gmail.com",
"password": "Password123",
"options": {
"data": {
"name": "Someone",
"company_name": "My Company",
"phone_num": "1234567890",
"contact_email": "contact@company.com",
"website": "https://example.com"
}
}
}
Why i getting this error, AIs say its something with setting but it worked before. Is it because of triggers?6 Replies
Are you using the built in SMTP? If so it might be limiting valid emails. At one time you had to use an email associated with the account, but it also might look for obvious spam type emails.
Please check the Auth log and see if there is more info.
If in the auth log it says database error then that could be a trigger.
yes im using built in. the logs are not a database error.
@garyaustin How to pass the build in SMTP validation? can I set up validation for it in supabase? Or the only way is enable custom SMTP?
You need to use custom SMTP. The built in is just for kicking the tires.
Does it work if you send to yourself?
yes. Basically I cant use random email for dev, but only the real emails?
It may be limited to only ones in your team for the org. Which is probably just you.
okay, thanks