auth icon indicating copy to clipboard operation
auth copied to clipboard

Calling updateUser on a oAuth only account doesn't enable email provider

Open vinumzz opened this issue 1 week ago • 0 comments

Bug report

  • [x] I confirm this is a bug with Supabase, not with my own application.
  • [x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

https://supabase.com/docs/guides/auth/auth-identity-linking#how-to-add-emailpassword-login-to-an-oauth-account

Here it states that if you call updateUser with a password on an oauth only account, the email provider will be enabled for the specific user. This does not work for me in local environment on latest supabase version.

To Reproduce

  1. Make an account with oAuth only
  2. Call updateUser with a password
  3. No email provider will be enabled

Expected behavior

That the email provider will be enabled for the user, so they can login with email and password too

System information

  • OS: [e.g. macOS, Windows]: Mac
  • Version of supabase-js: [e.g. 6.0.2]: 2.50.0

vinumzz avatar Jan 08 '26 07:01 vinumzz