Module: _buildSignature

(require("_buildSignature"))(method, url, pass) → {object}

Build polaris signature for authentication request header
Parameters:
Name Type Description
method string 'get' 'post' etc
url string endpoint being requested
pass string the user password or staff access secret
Source:
Requires:
  • module:crypto-js/hmac-sha1
  • module:crypto-js/enc-base64
Returns:
- with structure: { sig : 'generated signature', date: 'A RFC 1123 GMT Date' }
Type
object