$ npm install passport-nonce
passport.use(new NonceStrategy({
clientHeaderName: 'x-client-name',
nonceHeaderName: 'x-nonce',
tokenHeaderName: 'x-token',
clientSecrets: {
'client1': 'averysecretsharedsecret',
'client2': 'averysecretsharedsecret'
}
}))
app.get('/judge',
passport.authenticate('nonce'));