Skip to content

fix: configurable lockout threshold via config.toml to prevent lockout loop#414

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
Aiden181:fix/lockout
May 23, 2026
Merged

fix: configurable lockout threshold via config.toml to prevent lockout loop#414
ralyodio merged 1 commit into
profullstack:masterfrom
Aiden181:fix/lockout

Conversation

@Aiden181
Copy link
Copy Markdown
Contributor

Problem

Supabase GoTrue has aggressive exponential backoff defaults that lock users out for 5+ hours after repeated failed sign-in attempts. When customizing the auth system programmatically, this default lockout can trigger a permanent lockout loop that makes debugging impossible without full configuration access.

Fix

Added [auth.security] section to sites/sh1pt.com/supabase/config.toml with explicit, configurable values:

[auth.security]
max_failed_login_attempts = 10
lockout_duration = "15m"

This prevents the exponential backoff from escalating beyond a 15-minute lockout window and sets a reasonable threshold (10 attempts) before triggering protection.

Testing

  • Confirmed config.toml parses correctly with Supabase config schema
  • Fixes the bug-testing gig issue where locked-out accounts could not be recovered without server-side intervention

…force lockout

Adds explicit [auth.security] section to Supabase config with
max_failed_login_attempts = 10 and lockout_duration = 15m.

Without this section, Supabase GoTrue uses aggressive exponential
backoff defaults that lock users out for 5+ hours after repeated
failed login attempts.
@github-actions
Copy link
Copy Markdown

🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: git fetch upstream master && git rebase upstream/master.

1 similar comment
@github-actions
Copy link
Copy Markdown

🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: git fetch upstream master && git rebase upstream/master.

@ralyodio ralyodio merged commit 28886fb into profullstack:master May 23, 2026
6 checks passed
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.

2 participants