mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
## Problem The CLI config reference describes `auth.email.secure_password_change` as a setting that requires the user's current password. Auth maps it to `GOTRUE_SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION`, which asks a user to reauthenticate when their session is more than 24 hours old. Requiring the current password is a separate setting. The CLI added a key for that setting, `auth.email.require_current_password`, in supabase/cli#7458, and the config reference doesn't list it. Resolves [FDBKIN-46120](https://linear.app/supabase/issue/FDBKIN-46120) and [FDBKIN-46121](https://linear.app/supabase/issue/FDBKIN-46121), from supabase/supabase#52546 and supabase/supabase#52547. [CLI-1921](https://linear.app/supabase/issue/CLI-1921) tracks the CLI change. ## Solution - `auth.email.secure_password_change` describes reauthentication: the 24-hour session window and the nonce that `reauthenticate()` sends. It points to `require_current_password` for the other behavior. - `auth.email.require_current_password` is a new entry. A user sends their current password as `current_password`, and a password recovery flow skips the check. - Both entries link to their section of the password security guide, in place of the generic Auth server reference. The behavior comes from `internal/api/user.go` in supabase/auth: reauthentication applies when `session.CreatedAt` is more than 24 hours old, and the current-password check is skipped when `session.IsRecovery()`. ## Preview links | Site | Live | Preview | Search for | | -- | -- | -- | -- | | Docs | [/docs/guides/local-development/cli/config](https://supabase.com/docs/guides/local-development/cli/config#auth.email.secure_password_change) | [/docs/guides/local-development/cli/config](https://docs-git-alexisa-fdbkin-46120-supabase.vercel.app/docs/guides/local-development/cli/config#auth.email.require_current_password) | `require_current_password` |
Supabase Specs
These spec files are used to generate the reference documentation.
Preparation
To get started, run make init. This installs all dependencies.
Usage
make # download and transform specs into docs