invoke

suspend operator fun invoke(signDpop: SignJwtFun<JsonWebToken>, url: String, httpMethod: String = "POST", accessToken: String? = null, nonce: String? = null, randomSource: RandomSource = RandomSource.Secure, issuedAt: Instant = Clock.System.now().truncateToSeconds()): JwsCompactTyped<JsonWebToken>(source)

To be set as header DPoP in making request to url, see RFC 9449.

Parameters

signDpop

function to sign the JWT

url

target URL of the request

httpMethod

HTTP method of the request (in upper casse according to RFC 9449)

accessToken

access token to hash and include in the JWT

nonce

nonce to include in the JWT

randomSource

source of randomness for generating the JWT ID

issuedAt

timestamp to use as the creation timestamp