Skip to content

fix(auth): clarify updateUserById applies changes directly#2031

Merged
mandarini merged 1 commit into
supabase:masterfrom
7ttp:fix/tsdoc1
Jan 20, 2026
Merged

fix(auth): clarify updateUserById applies changes directly#2031
mandarini merged 1 commit into
supabase:masterfrom
7ttp:fix/tsdoc1

Conversation

@7ttp

@7ttp 7ttp commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Users expected updateUserById({ email, email_confirm: false }) to require user confirmation before applying the email change. The admin API intentionally applies changes directly.

Problem

The documentation for updateUserById and email_confirm/phone_confirm was ambiguous, leading users to believe setting email_confirm: false would prevent immediate email updates.

Solution

Clarified documentation:

  • updateUserById: "Changes are applied directly without confirmation flows"
  • email_confirm: "Sets the user's email as confirmed when true, or unconfirmed when false"
  • phone_confirm: "Sets the user's phone as confirmed when true, or unconfirmed when false"

Related

@7ttp 7ttp requested review from a team as code owners January 18, 2026 08:11
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 80.997%. remained the same
when pulling 7d708c8 on 7ttp:fix/tsdoc1
into 09aa106 on supabase:master.

@mandarini mandarini self-assigned this Jan 20, 2026
@mandarini mandarini merged commit f645953 into supabase:master Jan 20, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

when calling updateUserById method to update email of user it updates it without user confirmation

3 participants