signInWithOtp returns weak password error

I'm attempting to setup an OTP login (email only), but for some reason it always returns a "weak password" error, which is odd since OTP shouldn't have any password at all.

Here's my code:

this.#client.auth.signInWithOtp({
  email,
  options: {
    emailRedirectTo: this.#document.location.href,
  },
});


Where this.#client is the supabase-js client

Here's the error I get:
{
    "name": "AuthWeakPasswordError",
    "message": "Password should contain at least one character of each: abcdefghijklmnopqrstuvwxyz, ABCDEFGHIJKLMNOPQRSTUVWXYZ, 0123456789, !@#$%^&*()_+-=[]{};\\'\\:\"|<>?,./`~.",
    "status": 422
}


I've confirmed it's calling the OTP endpoint (https://{PROJECT_ID}.supabase.co/auth/v1/otp?redirect_to=http%3A%2F%2Flocalhost%3A4200%2Fproduct%2Fwoot), so it's definitely calling the correct method.

Any suggestions on what might be wrong? Thanks!
Was this page helpful?