I have set up azureAD login with passport in my Express-server. I would like to access the req object in the passport.authenticate middleware, is this possible somehow?
this.router.post(
'login/azure/return',
passport.authenticate('azuread-openidconnect', {
session: false,
failureRedirect: '' // I would like access to the req object HERE
}),
(req, res) => {
...
}