Skip to content

isAuthorized

isAuthorized(headerValue, token): boolean

Defined in: src/validate.ts:613

Timing-safe token check. Returns true when token config is null (auth disabled) or header matches.

string | null | undefined

string | null

boolean