accessTokenHeaders

suspend fun accessTokenHeaders(tokenResponse: TokenResponseParameters, resourceUrl: String, httpMethod: HttpMethod, dpopNonce: String? = null): Headers(source)

Headers to access resourceUrl with the access token from tokenResponse, i.e. HttpHeaders.Authorization and, for DPoP-bound tokens, HttpHeaders.DPoP. Uses dpopNonce, or the latest DPoP nonce that the resource server at that origin provided.