© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
6 replies
mrvdot

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,
  },
});
this.#client.auth.signInWithOtp({
  email,
  options: {
    emailRedirectTo: this.#document.location.href,
  },
});


Where
this.#client
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
}
{
    "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!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Error 535 from signInWithOtp
SupabaseSSupabase / help-and-questions
4y ago
signinwithotp
SupabaseSSupabase / help-and-questions
3y ago
TS2339: Property  weak_password  does not exist on type
SupabaseSSupabase / help-and-questions
3y ago
signInWithOtp not working with strongest Password Requirements (for new users).
SupabaseSSupabase / help-and-questions
3y ago