Supabase Config — Safe Auth Settings
БесплатноЗапускает вложенные скриптыНе проверенChange hosted Supabase Auth settings safely: read, diff, PATCH only named keys (writes remote config). Use when config push or a redirect broke magic links…
от alexbloch-ia368 установок в других каталогахОб этом скилле
Supabase Config — Change One Auth Setting, Not Twenty
supabase config push does not push "your changes". It builds a complete Auth config from config.toml plus the CLI's built-in template and sends it, so every scalar you did not declare goes out at its local-dev default: site_url = http://127.0.0.1:3000, email confirmations off, 6-character passwords. The Management API has a partial PATCH instead. This skill reads, diffs, patches only the keys you name, then re-reads and fails if anything else moved.
Sources: CLI source at tag v2.116.0 (pkg/config/auth.go, updater.go, templates/config.toml, the config push side-effects doc), Auth server source (internal/utilities/request.go), official docs checked 2026-09-30. Facts marked observed come from one production migration (CLI 2.116.0, Sept 2026). Re-check them after a CLI upgrade.
When to Use
| Trigger | Go to |
|---|---|
"after config push magic links go to localhost / signup is open / confirmations stopped" |
§1 then §4 |
| "change one Auth setting on the hosted project" | §2 |
"magic link lands on the homepage instead of /auth/callback" |
§4 |
| "add the staging / preview URL to redirects" | §4 add-redirect |
"turn on leaked-password protection", a setting missing from config.toml |
§5 |
"db reset --linked", "run psql against prod", "tests fail with Name has no usable address" |
§6 |
| "local lint is clean but the remote advisor complains" | §6 advisors |
Access and data
| Item | What this skill needs |
|---|---|
| Credentials | SUPABASE_ACCESS_TOKEN: a personal access token (sbp_…) from the dashboard, or a fine-grained token with auth_config_write + project_admin_write. Env var only. The script sends it in a header, in-process: never in argv, never printed, never written to disk. |
| Network out | https://api.supabase.com only. --api-base accepts nothing else except an http:// loopback address (test servers). |
| Writes | Remote Auth configuration via PATCH /v1/projects/<ref>/config/auth, only with --apply. Without it, every write command is a dry run. Nothing else is written, locally or remotely. |
| Data persisted | None. show prints to stdout with secret-looking string fields (*secret*, smtp_pass, *_key, *auth_token*) replaced by <redacted>. |
The script is scripts/authcfg.py (stdlib, Python 3.9+). Before first use, edit its PINNED_REF line to your project ref (§3).
1. What config push actually sends
For each service the CLI does GET → diff → print the diff → prompt [Y/n] → write. The Auth write body is not the diff: it is ToUpdateAuthConfigBody() over the whole local config, and the local config is the embedded template merged under your config.toml. An undeclared key is not "unchanged", it is "template default".
Undeclared in config.toml |
Value pushed | Effect on a hosted project |
|---|---|---|
auth.site_url |
http://127.0.0.1:3000 |
Every magic link that fails the allow-list lands on localhost (§4) |
auth.additional_redirect_urls |
["https://127.0.0.1:3000"] → uri_allow_list |
Your real callback URLs are gone |
auth.email.enable_confirmations |
false → mailer_autoconfirm: true |
Sign-ups are confirmed without email proof |
auth.enable_signup |
true → disable_signup: false |
Public sign-up reopens on an invite-only app |
auth.minimum_password_length / password_requirements |
6 / "" |
Password policy weakened |
auth.jwt_expiry, email.otp_expiry |
3600 |
Custom session and OTP lifetimes reset |
auth.rate_limit.* |
template values (sign_in_sign_ups = 30, …) |
Tuned rate limits reset |
[auth.external.apple] |
enabled = false (it is in the template) |
Apple sign-in configured in the dashboard is switched off |
Sent only when declared (nil-pointer sections, the CLI assumes platform defaults should not change): email templates and subjects, [auth.email.smtp], [auth.captcha], hooks, and every external provider other than Apple. Settings with no config.toml key at all (§5) are never sent.
Traps around the prompt:
--yesand--output-format json/stream-jsonauto-confirm.- Declining the prompt exits 0, like a successful push. The exit code does not tell you whether anything was written.
- The ref resolves
--project-ref→SUPABASE_PROJECT_ID→supabase/.temp/project-ref. A stale env var wins over the link. - A
[remotes.<name>]block whoseproject_idequals the target is merged over the base before the push. [db.settings]has no gate: it is diffed and written (PUT …/config/database/postgres) on every push.
If you must use config push: declare every Auth scalar you care about, copying values from authcfg.py show, run it interactively, read the diff, and answer n the first time.
2. The partial PATCH
PATCH /v1/projects/{ref}/config/auth is partial (every body field is optional; only fields sent change). The script adds what the
Установить Supabase Config — Safe Auth Settings в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Supabase Config — Safe Auth Settings?
Change hosted Supabase Auth settings safely: read, diff, PATCH only named keys (writes remote config). Use when config push or a redirect broke magic links. Trigger on "magic link goes to localhost".
Как установить скилл Supabase Config — Safe Auth Settings?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Supabase Config — Safe Auth Settings запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic