Generates a JWT (also known as a Bearer token) for authenticating with Coinbase's REST APIs.
Supports both EC (ES256) and Ed25519 (EdDSA) keys. Also supports JWTs meant for
websocket connections by allowing requestMethod, requestHost, and requestPath to all be
null, in which case the 'uris' claim is omitted from the JWT.
Generates a JWT (also known as a Bearer token) for authenticating with Coinbase's REST APIs. Supports both EC (ES256) and Ed25519 (EdDSA) keys. Also supports JWTs meant for websocket connections by allowing requestMethod, requestHost, and requestPath to all be null, in which case the 'uris' claim is omitted from the JWT.