How to avoid losing access to your Supabase account when you sign in with OAuth

Add a password to your Supabase account so you can still sign in with your email address if you lose access to your OAuth provider.

If you sign in only with an OAuth provider, such as GitHub or ChatGPT, your Supabase account depends on that provider account. You lose access to Supabase if the provider account is deleted, converted, or locked. For example, converting a GitHub account to an organization removes your GitHub sign-in.

If you sign in with single sign-on (SSO), your organization manages how you sign in, and you can’t add a password.

Check your sign-in methods

Go to Account Settings > Security and find Sign-in methods.

If you see Add a password for email sign-in, your account has no password. Follow the steps in Add a password.

If Email is listed as a sign-in method, your account already has a password. To change it, click Change password.

Add a password

The password works with the email address on your Supabase account, which the Add password dialog shows. Adding a password doesn’t require a confirmation email.

  1. Go to Account Settings > Security.
  2. Under Sign-in methods, click Add password.
  3. Enter a password that meets the listed requirements, then click Add password.

Email now appears under Sign-in methods next to your OAuth provider. Adding a password signs you out of your other sessions. Store the password in a password manager.

Check the email address on your account

You need access to the email address on your Supabase account to reset your password later.

You can’t change this address while your account has no password. Changing your email address with your OAuth provider doesn’t change it either. After you add a password, you can change it:

  1. Go to Account Settings > Security.
  2. Under Sign-in methods, click Update email address next to Email.
  3. Enter the new address, then click Confirm.
  4. Click the confirmation links that Supabase sends to your current and your new address within 10 minutes.

If you can’t receive email at the current address, you can still sign in with your password, but you can’t reset it or change the address yourself.

Confirm the password works

  1. Sign out of the Supabase Dashboard.
  2. On the sign-in page, sign in with your email address and your new password.

If you enabled multi-factor authentication (MFA), you still complete the MFA step after you enter your password. To avoid an MFA lockout, see Lost access to your MFA authenticator app or recovery codes.

If you lose access to your OAuth provider

Sign in with your email address and password. Your organizations and projects stay the same.

To remove the provider from your Supabase account:

  1. Go to Account Settings > Security.
  2. Under Sign-in methods, next to the provider, click Unlink identity.
  3. In the confirmation dialog, click Unlink identity.

Go to the GitHub discussion