@inrupt/solid-client-authn-core
    Preparing search index...

    Function createDpopHeader

    • Creates a DPoP proof according to https://www.rfc-editor.org/rfc/rfc9449.html, based on the target URL and method, using the provided key.

      Parameters

      • audience: string

        Target URL.

      • method: string

        HTTP method allowed.

      • dpopKey: KeyPair

        Key used to sign the token.

      • OptionalaccessToken: string

        The access token the proof is presented with, if any. It must be provided when calling a protected resource, and omitted when calling the token endpoint.

      Returns Promise<string>

      A JWT that can be used as a DPoP header.