/Knowledge/sources/honojs__hono/llms-full/bearer-auth-middleware-options-invalidtoken-object--dceb5ba7f6da.md
Bearer Auth Middleware: Options > invalidToken: object - hono-docs
Bearer Auth Middleware: Options invalidToken: object Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt i...
Bearer Auth Middleware: Options > invalidToken: object
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#invalidtoken-object
Summary
Customizes the error response when the token is invalid. - wwwAuthenticateHeader: string | object | MessageFunction - Customizes the WWW-Authenticate header value. - message: string | object | MessageFunction - The custom message...
Content
Customizes the error response when the token is invalid.
wwwAuthenticateHeader:string | object | MessageFunction- Customizes the WWW-Authenticate header value.message:string | object | MessageFunction- The custom message for the response body.
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#invalidtoken-object",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Bearer Auth Middleware > Options > invalidToken: `object`",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 260,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Bearer Auth Middleware: Options > invalidToken: object",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}