Skip to content

Commit ca392fe

Browse files
committed
docs: restore i18n error codes reference
1 parent 6cbb32c commit ca392fe

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/content/4.integrations/4.i18n.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,21 @@ export default defineServerAuth(() => ({
120120
}))
121121
```
122122

123+
## Error Codes Reference
124+
125+
| Code | Default Message |
126+
|------|-----------------|
127+
| `USER_NOT_FOUND` | User not found |
128+
| `INVALID_PASSWORD` | Invalid password |
129+
| `INVALID_EMAIL_OR_PASSWORD` | Invalid email or password |
130+
| `EMAIL_NOT_VERIFIED` | Email not verified |
131+
| `SESSION_EXPIRED` | Session expired |
132+
| `INVALID_TOKEN` | Invalid token |
133+
| `USER_ALREADY_EXISTS` | User already exists |
134+
| `INVALID_EMAIL` | Invalid email |
135+
| `PASSWORD_TOO_SHORT` | Password too short |
136+
| `RATE_LIMIT_EXCEEDED` | Too many requests |
137+
123138
::callout{icon="i-lucide-book" to="https://www.better-auth.com/docs/concepts/client#error-codes"}
124139
See [Better Auth Error Codes](https://www.better-auth.com/docs/concepts/client#error-codes) for the complete list of error codes.
125140
::

0 commit comments

Comments
 (0)