• Create a signature for a Google Maps request URL or url string.

    const signature = createSignature("https://example.com/some-path?foo=bar", "secret");
    

    Parameters

    • unsignedUrl: string | URL

      The URL to sign.

    • secret: string

      The secret to use for signing.

    Returns string

    The signature of the signed url.