TokenOptions
TokenOptions describes the claims carried by a Token.
Properties
Section titled “Properties”algorithm?
Section titled “algorithm?”
readonlyoptionalalgorithm?:string
algorithm is the alg header value.
audience?
Section titled “audience?”
readonlyoptionalaudience?: readonlystring[]
audience is the aud claim, always held as a list.
authorizedParty?
Section titled “authorizedParty?”
readonlyoptionalauthorizedParty?:string
authorizedParty is the azp claim, or the empty string when absent.
expiresAt?
Section titled “expiresAt?”
readonlyoptionalexpiresAt?:Timestamp
expiresAt is the exp claim, or the unset timestamp when absent.
readonlyoptionalid?:string
id is the jti claim, or the empty string when absent.
issuedAt?
Section titled “issuedAt?”
readonlyoptionalissuedAt?:Timestamp
issuedAt is the iat claim, or the unset timestamp when absent.
issuer?
Section titled “issuer?”
readonlyoptionalissuer?:string
issuer is the iss claim.
keyId?
Section titled “keyId?”
readonlyoptionalkeyId?:string
keyId is the kid header value, or the empty string when absent.
notBefore?
Section titled “notBefore?”
readonlyoptionalnotBefore?:Timestamp
notBefore is the nbf claim, or the unset timestamp when absent.
payload?
Section titled “payload?”
readonlyoptionalpayload?:Record<string,unknown>
payload contains the decoded claim set, including custom claims.
subject?
Section titled “subject?”
readonlyoptionalsubject?:string
subject is the sub claim.