> You are reading Better Auth documentation for `v1.6`. This is not the current stable release. APIs may differ from the latest stable version.

# internal_server_error (/docs/1.6/reference/errors/internal_server_error)

An unexpected error occurred during authentication.



This error occurs when an unexpected failure happens inside the authentication process.

## How to fix [#how-to-fix]

* Check server logs for detailed error information
* Verify database connectivity and configuration
* Ensure all required environment variables are set correctly
* Review any custom hooks or adapters for runtime errors

