You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for making this. I think your documentation is missing the step where create() should be called, otherwise node throws an error about GS not having a sign method. This is the code that worked for me:
var GS = require('gmaps-signature');
var uriSigner = GS.create();
uriSigner.GMAPS_CLIENT_ID = myId;
uriSigner.GMAPS_PRIVATE_KEY = myKey;
var signedUri = uriSigner.sign(requestUri);
The text was updated successfully, but these errors were encountered:
Thanks for making this. I think your documentation is missing the step where create() should be called, otherwise node throws an error about GS not having a sign method. This is the code that worked for me:
The text was updated successfully, but these errors were encountered: