@dvxch/yandex-music
    Preparing search index...

    Function getSignRequest

    • Create a signature for a track-scoped request.

      The signature is HMAC-SHA256(key, "{trackId}{timestamp}") encoded as Base64, matching the scheme used by the Android client.

      Parameters

      • trackId: string | number

        The track the request is scoped to.

      • key: string = DEFAULT_SIGN_KEY

        The signing key. Defaults to DEFAULT_SIGN_KEY.

      Returns Sign

      The timestamp/value pair to send alongside the request.