Reference
Function: dpopProof()
Function: dpopProof() in @ticketlayer/backstage.
@ticketlayer/backstage / dpopProof
function dpopProof(input: DpopProofInput & {
key: Pick<DpopKey, "keyPair" | "publicJwk">;
}): Promise<string>;Defined in: auth/dpop.ts:90
A DPoP proof JWT: header { typ: 'dpop+jwt', alg: 'ES256', jwk }, payload
{ jti, htm, htu, iat }, plus ath (the access token's SHA-256) when a
token is presented with it and nonce when the server asked for one. A
proof is for one request: a new jti every call.
Parameters#
| Parameter | Type |
|---|---|
input | DpopProofInput & { key: Pick<DpopKey, "keyPair" | "publicJwk">; } |
Returns#
Promise<string>