0.1.3 • Published 5 years ago
did-auth-express v0.1.3
did-auth-express
DID-Auth middelware for Express like servers
Documentation: https://notabene-id.github.io/did-auth-express/
Description
This package provides Express middleware for DID-AUTH authentication.
Installation
yarn
yarn add did-auth-express
npm
npm install did-auth-express
Usage
Basic middleware registration
const didauth = require("did-auth-express");
app.use(
"/api",
didauth({
resolverOptions: {
infuraProjectId: process.env.INFURA_PROJECT_ID,
cache: false,
},
})
);Development
Instal dependencies
$ npm installBuild
$ npm run buildTest
$ npm testTo publish to NPM:
$ pika publishTo publish dosc:
$ npm run docsContributing
Contributions are welcome!
Want to file a bug, request a feature or contribute some code?
- Check out the Code of Conduct
- Check that there is no existing issue corresponding to your bug or feature
- Before implementing a new feature, discuss your changes in an issue first!
License
MIT © Notabene