• Use this MW to protect a route, checking that all values are in a claim.

    const { claimIncludes } = require('express-openid-connect');

    app.get('/admin/delete', claimIncludes('roles', 'admin', 'superadmin'), (req, res) => {
    res.send(...);
    });

    Parameters

    • claim: string

      The name of the claim

    • Rest ...args: (string | number | boolean)[]

      Claim values that must all be included

    Returns RequestHandler