跳转到内容
简体中文

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.