コンテンツにスキップ
日本語

BearerTokenAuthOptions

このコンテンツはまだ日本語訳がありません。

Defined in: src/http/middleware/BearerToken.ts:15

readonly optional headerName?: string

Defined in: src/http/middleware/BearerToken.ts:28

Header name to read the token from. Default: 'authorization'. HTTP header names are lower-cased by the framework — pass them lower-case here too.


readonly optional realm?: string

Defined in: src/http/middleware/BearerToken.ts:32

Realm advertised in WWW-Authenticate on 401. Default: 'actor-ts'.


readonly tokens: readonly string[]

Defined in: src/http/middleware/BearerToken.ts:22

Acceptable tokens — at least one must match the Authorization: Bearer <token> header. Multiple entries support rotation: emit a new token, deploy clients with the new token, then drop the old entry.