TokenTypePolicy
TokenTypePolicy
Expectation for the typ header (RFC 7515 §4.1.9, RFC 8725 §3.11).
A string requires that media type, compared case-insensitively with an omitted application/ prefix restored. { absent: true } requires the header to be missing. { unchecked: true } accepts any value.
ts
type TokenTypePolicy = string | {
readonly absent: true
} | Unchecked