Natively signs a JSON Web Signature (JWS) payload using the Web Crypto API.
The payload object to sign
The CryptoKey used for signing
Optional JWS headers (default: { alg: 'RS256', typ: 'JWT' })
{ alg: 'RS256', typ: 'JWT' }
A promise resolving to the signed JWS string
Natively signs a JSON Web Signature (JWS) payload using the Web Crypto API.