Skip to content

Auth: updateEmail keeps isEmailVerified from the previous address #79

Open

Description

@nbransby

From the Copilot review of #73 (#73 (comment)), on the isEmailVerified handling from #69 by @TomislavMladenov.

After accounts:update changes the email address, the rebuilt user takes isEmailVerified = prev.isEmailVerified, so a verified flag survives a change of address even when the response reports emailVerified = false. The stale value is persisted and preserved by token refresh.

Suggested fix: honour the response's emailVerified when present, and when it is absent clear the flag whenever the requested address differs from the previous one, with a test for both cases.

Activity

  1. changed the title [-]Auth: updateEmail keeps isEmailVerified from the previous address</title> <parameter name="labels">["bug"][/-] [+]Auth: updateEmail keeps isEmailVerified from the previous address[/+] on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions