passport-nonce

1.0.0 • Public • Published

passport-nonce

Install

$ npm install passport-nonce

Usage

Configure Strategy

passport.use(new NonceStrategy({
  clientHeaderName: 'x-client-name',
  nonceHeaderName: 'x-nonce',
  tokenHeaderName: 'x-token',
  clientSecrets: {
    'client1': 'averysecretsharedsecret',
    'client2': 'averysecretsharedsecret'
  }
}))

Authenticate Requests

app.get('/judge',
  passport.authenticate('nonce'));

Readme

Keywords

none

Package Sidebar

Install

npm i passport-nonce

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.17 kB

Total Files

7

Last publish

Collaborators

  • jatinkatyal13