@opentdf/sdk
    Preparing search index...

    Function reqSignature

    • Generate a JWT (or JWS-ed object)

      Parameters

      • toSign: unknown

        the data to sign. Interpreted as JWTPayload but AFAIK this isn't required

      • privateKey: CryptoKey

        an RSA key

      • jwtProtectedHeader: JWTHeaderParameters = ...

      Returns Promise<string>

      the signed object, with a JWS header. This may be a JWT.