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

1 Commits

Author SHA1 Message Date
9253b9b220 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
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>
2026-02-24 19:54:51 -06:00