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

Open
#2,320 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
go

Research direction

Start at the updateUser entry point for OAuth-only accounts and reproduce the behavior in a local Supabase environment using supabase-js 2.50.0. Check whether supplying a password enables email login as described in the linked auth identity-linking documentation; done means the user can sign in with both OAuth and email/password.

Written by the indexing model from the issue text.

Description

bug

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • 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
Dominant language
Go
Stars
2.6k
Forks
764
Avg merge
5d 3h
Merged PRs (30d)
39

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/auth

All issues in supabase/auth

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.