CDP SDK TypeScript - v1.31.0
    Preparing search index...

    Function generateJwt

    • 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.

      Parameters

      • options: JwtOptions

        The configuration options for generating the JWT

      Returns Promise<string>

      The generated JWT (Bearer token) string

      If required parameters are missing, invalid, or if JWT signing fails