The Express.js Request with oidc context added by the auth middleware.
oidc
auth
app.use(auth());app.get('/profile', (req, res) => { const user = req.oidc.user; ...}) Copy
app.use(auth());app.get('/profile', (req, res) => { const user = req.oidc.user; ...})
use the native the Request interface of express instead; it has been extended and now includes a built in oidc param.
Request
express
Library namespace for authentication methods and data.
The Express.js Request with
oidc
context added by theauth
middleware.Deprecated
use the native the
Request
interface ofexpress
instead; it has been extended and now includes a built inoidc
param.