Skip to main content

Module error

Module error 

Source

Modules§

codes
Error codes shared with Better Auth’s client, so its error.code checks keep working.

Structs§

AuthError
The one error type every endpoint, hook and extractor returns. It leaves the server as { "code": "...", "message": "..." } with status.
BuildError
Configuration problems found by .build(), all reported at once.

Traits§

ErrorCodes
Lets a plugin register its error codes at build time, so two plugins can’t claim one code.