1.1.4 • Published 3 months ago

@exponential/developer-utils v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

utils


validateCredential

This method can be used to validate calls made from the Datacloud.sh 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/developer-utils

Quick Start:

const { validateCredential } = require('@exponential/developer-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) => {

})
1.1.4

3 months ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago