- Notifications
You must be signed in to change notification settings - Fork8
Sign a URL for Google Maps Platform requests.
License
googlemaps/js-url-signature
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Sign a URL for Google Maps Platform requests.
Warning: It is not recommended to use this library in client side applications to avoid exposing the secret used to sign the URL.
Available via npm as the package@googlemaps/url-signature.
npm i @googlemaps/url-signature
Check out thereference documentation.
Create a signature for a Google Maps requestURL or url string.
constsignature=createSignature("https://example.com/some-path?foo=bar","secret");
Returns a newURL having a signature parameter.
constsignedUrl=signUrl("https://example.com/some-path?foo=bar","secret");signedUrl.href;// "https://example.com/some-path?foo=bar&signature=..."
Create a signature for a path and query string using Hmac SHA1.
constsignature=createSignatureForPathAndQuery("/some-path?foo=bar","secret");
Note: This is not an officially supported Google product
About
Sign a URL for Google Maps Platform requests.
Topics
Resources
License
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.
