Skip to content

ExponentialAquaNetworks/developer-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

})

About

This package contains some utility functions for use by API developers of exponentialhost.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published