Timestamp authenticator to sign HTTP requests for Allied REST api.
npm install @alliedpayment/authenticatorTimestamp authenticator to sign HTTP requests for Allied REST api.
Public / Private Key Required.
``ts`
import authenticator from "@alliedpayment/authenticator";
`js``
// env var ALLIED_PRIVATE_KEY must be set
// env var ALLIED_PUBLIC_KEY must be set
const authenticator = require('@alliedpayment/authenticator');
const header = authenticator.sign('url/to/resource');