0.1.3 • Published 3 years ago

did-auth-express v0.1.3

Weekly downloads
41
License
MIT
Repository
github
Last release
3 years ago

did-auth-express

DID-Auth middelware for Express like servers

Build Status License npm GitHub last commit codecov

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