auth_update
Changes how the auth service behaves: the site URL and the allow-list of redirect URLs, whether email needs confirming, whether new sign-ups are closed, whether anonymous sign-ins are allowed, which OAuth providers are on (Google and GitHub, with their client id and secret, stored as secrets and never returned), the minimum password length, how long access tokens last and how refresh tokens rotate. Only the fields you send change. The service restarts on the new settings with the old one serving until the new one is healthy. Signed-in users are not signed out. A field this operation does not have is refused by name, not ignored.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"productId": "<productId>"
},
"name": "auth_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Required for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would. | |
| dry_run | No | Return the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before. | |
| external | No | OAuth providers. Send client_secret only when it changes; it is stored as a secret and cannot be read back. The redirect URI to register with the provider is {AUTH_URL}/auth/v1/callback. | |
| site_url | No | Where auth redirects land by default, and the base for links in emails. | |
| productId | Yes | Product identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d. | |
| environment | No | Environment within a Product. Every Product has production; preview and development are optional. pr-<number> is the preview of an open pull request, made and removed by the GitHub integration on Pro. | |
| disable_signup | No | true refuses new sign-ups. Existing users, and users you invite, still get in. | |
| idempotency_key | No | Replaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money. | |
| public_hostname | No | Which hostname AUTH_URL names: the default one, or a custom domain attached to the auth service. Changing it changes the redirect URI OAuth providers must have registered. | |
| email_autoconfirm | No | true signs people in without confirming their email. Leave it off unless the app confirms addresses itself. | |
| anonymous_sign_ins | No | true lets anyone create an anonymous user with an empty POST /auth/v1/signup (supabase.auth.signInAnonymously()), which they can later upgrade to a real account with updateUser. Anyone on the internet can do this, so put CAPTCHA and rate limiting in your app; auth limits it to 30 an hour per address. Default false. | |
| jwt_expiry_seconds | No | How long an access token lasts. Default 3600. | |
| password_min_length | No | Six is GoTrue’s floor and 72 is bcrypt’s ceiling. | |
| refresh_token_rotation | No | Each refresh issues a new refresh token and retires the old one. On by default, and worth keeping on. | |
| additional_redirect_urls | No | Every URL an app may ask auth to redirect to, beyond site_url. Patterns are allowed, e.g. https://*.example.com/**. Replaces the list. | |
| refresh_token_reuse_interval_seconds | No | How long a just-used refresh token may be presented again, so two tabs refreshing together do not sign the user out. Default 10. |