---
title: Token issuance failed
summary: Code: tokenissuancefailed
section: errors
order: 95
---
# Token issuance failed

Code: `token_issuance_failed`

- HTTP status: 500 Internal Server Error
- OAuth `error`: `server_error`
- Shown to the end user: Token issuance failed

Request-specific detail for this error goes to the app or developer (API response, developer view, logs). The public page shows only the short message and the code.

## Cause

The IdP could not mint or store the token (signing key or database failure). Details are in the server log.

## Fix

Retry. If it persists, check the IdP logs for the request id and the signing key state.

[All error codes](/errors/index.md)
