Skip to content

Email address "a@a.com" is invalid #2252

@bakbuz

Description

@bakbuz

Hi guys

When I try to register with the email address a@a.com, I get an "invalid email" error. I think it’s because the validation rule requires at least three characters for the domain name, but in theory, one-character domain names are possible.

How can I bypass this validation rule?

example request:

client := auth.New(supabaseId, supabaseKey)

req := types.SignupRequest{
	Email:    "a@a.com",
	Password: "12345678",
}

res, err := client.Signup(req)
if err != nil {
	log.Fatal(err)
}

fmt.Println(res)

response status code 400:

{
    "code": 400,
    "error_code": "email_address_invalid",
    "msg": "Email address \"a@a.com\" is invalid"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions