@alliedpayment/authenticator
v14.0.8
Published
Timestamp authenticator to sign HTTP requests for Allied REST api.
Downloads
40
Keywords
Readme
authenticator
Timestamp authenticator to sign HTTP requests for Allied REST api.
Public / Private Key Required.
Usage
import authenticator from "@alliedpayment/authenticator";
// 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');