Use this MW to protect a route based on the value of a specific claim.
const { claimEquals } = require('express-openid-connect');app.get('/admin', claimEquals('isAdmin', true), (req, res) => { res.send(...);}); Copy
const { claimEquals } = require('express-openid-connect');app.get('/admin', claimEquals('isAdmin', true), (req, res) => { res.send(...);});
The name of the claim
The value of the claim, should be a primitive
Use this MW to protect a route based on the value of a specific claim.