Library API
    Preparing search index...

    Function signJWS

    • Natively signs a JSON Web Signature (JWS) payload using the Web Crypto API.

      Parameters

      • payload: object

        The payload object to sign

      • privateKey: CryptoKey

        The CryptoKey used for signing

      • headers: object = ...

        Optional JWS headers (default: { alg: 'RS256', typ: 'JWT' })

      Returns Promise<string>

      A promise resolving to the signed JWS string