---
title: internal_server_error
description: An unexpected error occurred during authentication.
---

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

## 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
