did-auth-express
v0.1.3
Published
DID-Auth middelware for Express like servers
Downloads
12
Readme
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 install
Build
$ npm run build
Test
$ npm test
To publish to NPM:
$ pika publish
To publish dosc:
$ npm run docs
Contributing
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