Skip to content

chore(cli): scaffold account recovery reminders - #7574

Draft
dnywh wants to merge 9 commits into
developfrom
dnywh/account-recovery-reminders
Draft

dnywh wants to merge 9 commits into
developfrom
dnywh/account-recovery-reminders

Conversation

@dnywh

@dnywh dnywh commented Nov 11, 2026 •

Copy link
Copy Markdown

Summary

Preview CLI reminders that help users keep a backup way into their Supabase account. After a successful interactive command, a reminder appears on stderr and links to Account Security to generate or regenerate recovery codes.

The scaffold covers three cases:

Mock value Intended account state Reminder
missing No recovery-code set has been generated Generate and save a set
low One to three unused recovery codes remain Generate and save a new set
exhausted No unused recovery codes remain Generate and save a new set

These are opt-in previews selected with SUPABASE_ACCOUNT_RECOVERY_REMINDER_MOCK=missing, low or exhausted. The flag selects the message directly. Account eligibility and code counts will come from the future API.

Reminders are suppressed for CI, detected coding agents, help/version requests, machine-readable output and non-interactive terminals. They leave command stdout and exit codes intact.

Remaining integration

Live reminders need an authenticated account-recovery API, including eligibility rules for verified backup factors, SSO-managed accounts and feature availability. The CLI also needs account-specific throttling so it does not repeat the reminder after every command.

The three preview cases establish the CLI presentation. The backend contract and reminder cadence still need agreement before live checks are enabled.

This branch has not been deployed

No deployments
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.

1 participant