fix(auth): prevent login page freeze on OAuth sign-in failure #506

Merged
jason.woltje merged 1 commits from fix/oauth-login-freeze into main 2026-02-25 01:59:37 +00:00
Owner

Summary

  • Fix login page freezing after clicking Continue
## Summary - Fix login page freezing after clicking Continue
jason.woltje added 1 commit 2026-02-25 01:55:40 +00:00
fix(auth): prevent login page freeze on OAuth sign-in failure
All checks were successful
ci/woodpecker/push/api Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
9253b9b220
The login page froze after clicking "Continue with Authentik" because
signIn.oauth2() resolves (not rejects) on server 500, leaving the
button stuck in "Connecting..." state permanently.

- Handle the .then() case to detect error/missing redirect URL and
  reset loading state with a user-facing error message
- Log BetterAuth silent 500 responses that bypass NestJS error handling
- Enable BetterAuth error-level logger for diagnostic visibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit 5f6c520a98 into main 2026-02-25 01:59:37 +00:00
jason.woltje deleted branch fix/oauth-login-freeze 2026-02-25 01:59:37 +00:00
Sign in to join this conversation.