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) => {

})

Readme

Keywords

none

Package Sidebar

Install

npm i @exponential/utils

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

3.92 kB

Total Files

5

Last publish

Collaborators

  • fahisayub
  • kbsbng