feat(console): add self-service account email change flow#26367
Open
PanAchy wants to merge 4 commits intoanomalyco:devfrom
Open
feat(console): add self-service account email change flow#26367PanAchy wants to merge 4 commits intoanomalyco:devfrom
PanAchy wants to merge 4 commits intoanomalyco:devfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #26363
Type of change
What does this PR do?
Adds a self-service email change flow for OpenCode Console / Go / Zen accounts.
The flow requires two confirmations:
Once both links are confirmed, the canonical
auth.emailrow is updated to the new email. Existing Google/GitHub login identities remain linked to the same account, so the user keeps the same account, workspaces, billing, keys, and usage history.Changes included:
email_changeDrizzle schema for pending email changesA maintainer will need to generate the Drizzle migration because
bun run db-dev generaterequires SST/Cloudflare credentials.How did you verify your code works?
Ran:
The pre-push hook also ran the root typecheck successfully:
I could not run the full Console auth/DB/mail flow locally because
sst shell --stage devrequires maintainer Cloudflare/SST credentials.I also could not generate the Drizzle migration for the same reason.
Screenshots / recordings
N/A — I could not run the authenticated Console UI locally without maintainer environment credentials.
Checklist