• Generates an API token.

    To make any API call, you must acquire a JWT (JSON Web Token) format API token.

    Parameters

    • appKey: string

      Your Dolby.io App Key.

    • appSecret: string

      Your Dolby.io App Secret.

    • Optional expiresIn: number

      API token expiration time in seconds. If no value is specified, the default is 1800, indicating 30 minutes. The maximum value is 86,400, indicating 24 hours.

    Returns Promise<JwtToken>

    A JwtToken object through a Promise.