Skip to content

Distinguish expected auth rejections from operational failures - #6

Merged
nedtwigg merged 1 commit into
mainfrom
diagnostic-rejection-levels
Sep 11, 2026
Merged

Distinguish expected auth rejections from operational failures#6
nedtwigg merged 1 commit into
mainfrom
diagnostic-rejection-levels

Conversation

@nedtwigg

Copy link
Copy Markdown
Member

Better Auth calls its error hook for expected 4xx responses as well as server failures. Leave expected rejections to the existing auth.rejected warning event, preventing wrong email codes from triggering operational failure alerts.

The integration test checks that a rejected code produces a warning and no request.failed event. pnpm check passes (160 tests).

@nedtwigg
nedtwigg merged commit d243d7d into main Sep 11, 2026
1 check 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.

1 participant