This package has been deprecated

Author message:

Install @exponential/developer-utils instead

@exponential/utils

1.1.0 • Public • Published

utils


validateCredential

This method can be used to validate calls made from the Exponential server to the API. To use this, download this package and import validateCredential then use it as a middleware in api.

Installation:

npm install @exponential/utils

Quick Start:

const { validateCredential } = require('@exponential/utils');

app.get("/path-to-be-authenticated-1", validateCredential.bind(null, process.env.API_SECRET), async (req, res) => {

})

app.post("/path-to-be-authenticated-2", validateCredential.bind(null, process.env.API_SECRET), async (req, res) => {

})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i @exponential/utils

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

3.92 kB

Total Files

5

Last publish

Collaborators

  • fahisayub
  • kbsbng