bothy-sdk
    Preparing search index...

    Function dpopThumbprint

    • Returns the RFC 7638 thumbprint (SHA-256, base64url) of a public JWK: only the required members of the key type enter the hash, in lexicographic order.

      Parameters

      • jwk: Readonly<Record<string, unknown>>

        A public JWK of type EC, OKP or RSA.

      Returns string

      The thumbprint, the value of dpop_jkt at createToken.

      TypeError when the key type is not supported or a required member is missing.

      dpopThumbprint({ kty: "OKP", crv: "Ed25519", x: "AA" });
      // "3I7TDbW-lKbNSt8372-ez4nbmhZyQrtliLvMotQEsgE"