Skip to content

Supabase Auth errorSupabase Auth: weak_password (password strength criteria not met)

weak_password is the Supabase Auth error code for a sign-up or password change that fails the project’s password rules. The rules are the minimum length and required characters, and the project can also reject leaked passwords. The error says which rule failed.

Short answer

Check error.code for weak_password, then read the reasons on the AuthWeakPasswordError and show the matching rule to the user. Make your sign-up, password reset and updateUser forms check the same rules as Auth settings, so users see them before they submit.

Rather not fix it yourself? App Fix Ticket starts with a fixed-price diagnosis, then a fixed price for the fix before any fix work.

Why the password is rejected, and the fix

  1. 01

    The password breaks a project rule

    “User is signing up or changing their password without meeting the password strength criteria.” Supabase docs, Auth error codes (weak_password)

    The project’s Auth settings set the minimum length and which characters are required. A password that misses one is rejected with weak_password.

  2. 02

    The app shows a generic error

    “Use the AuthWeakPasswordError class to access more information about what they need to do to make the password pass.” Supabase docs, Auth error codes (weak_password)

    Match on error.code, not the message text, and read the reasons from the error to tell the user what to change.

    import { isAuthWeakPasswordError } from '@supabase/supabase-js';
    
    const { error } = await supabase.auth.signUp({ email, password });
    if (isAuthWeakPasswordError(error)) {
      // error.reasons lists what failed: 'length', 'characters' or 'pwned' (found in a leaked list)
      showPasswordHelp(error.reasons);
    }
  3. 03

    The form and Auth settings disagree

    “Set a large minimum password length. Anything less than 8 characters is not recommended.” Supabase docs, Password security

    A form that allows 6 characters while Auth requires 8 lets users submit passwords that fail. Supabase recommends at least 8. Show the same rules in the form, and update both when you change one.

  4. 04

    The password is in a leaked list

    With leaked password protection on in Auth settings, a common or breached password fails even when it is long, with the reason pwned. Ask for a different password, and suggest a password manager.

Checked against the vendor’s docs on : Supabase docs: Auth error codes; Supabase docs: Password security.

Rather hand it over?

Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.

“Very responsive, attentive to fixing bugs, and completed the project as needed! Thank you!”
A buyer in the United States, July 2022. Shopify on Fiverr
All 127 Fiverr reviews

Related: Supabase invalid login credentials · Supabase user already registered · Supabase email not confirmed · Supabase same_password

Questions

More on this error

Do existing users have to change their password?

The check runs when a password is set or changed, not on sign-in, so tightening the rules affects new passwords.

Should I lower the rules to stop the error?

No. Show the rules clearly instead. Short passwords are easier to guess and to reuse from leaked lists.

Can you fix it for me?

If one bug is the whole problem, the App Fix Ticket covers it: a written diagnosis first, then the fix. If the app has more going on, the Launch Check is a written check of the whole app. Each issue found is rated critical, high, medium or low, with where it is and how it was confirmed. No issues worth fixing, no charge. If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way. This applies to the first 10 Launch Checks bought after October 30, 2026.

A different error?

Describe it and get a written quote

Send the error and what you were doing. You get a written scope, a fixed price and a timeline; Simon replies by email, usually within one business day.