@karmaniverous/jeeves
    Preparing search index...

    Function computeOutsiderKeyWithExpiry

    • Compute an outsider key with an expiry: HMAC-SHA256(apiKey, normalizedPath + "|" + expiry), truncated to 32 hex characters.

      Parameters

      • apiKey: string

        The server's API key (HMAC secret).

      • urlPath: string

        The URL path to scope the key to. Normalized the same way as computePathKey.

      • expiry: string | number

        The key's expiry, as an epoch-millisecond number or a string. Stringified via String(expiry) before hashing, so the numeric and string forms of the same value produce identical keys.

      Returns string

      A 32-character lower-case hex key.