Function createSignatureForPathAndQuery

  • Create a signature for a path and query string using HmacSHA1.

    const signature = createSignatureForPathAndQuery("/some-path?foo=bar", "secret");
    

    Parameters

    • pathAndQuery: string
    • secret: string

      The secret to use for signing.

    Returns string

    The signature of the signed url.