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: KeyLike

      an RSA key

    • jwtProtectedHeader: JWTHeaderParameters = ...

    Returns Promise<string>

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

Generated using TypeDoc