mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 23:21:08 +02:00
Accessing (error as any)?.body?.code on a Better Auth APIError triggers an internal async stream read. When the request body contains special chars like '!', the deferred JSON parse fails as an unhandled rejection that races with the response, causing 500. Use only error.status === 'FORBIDDEN' which is a simple string property. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| sql | ||
| src | ||
| CLAUDE.md | ||
| Dockerfile | ||
| drizzle.config.ts | ||
| package.json | ||
| tsconfig.json | ||