I have tried to add
passport.authenticate([this.type], {
scope: "openid email profile read:user_idp_tokens",
}), function(req, res) {
res.redirect("/user");
},
...
const verify = (issuer, audience, profile, accessToken, refreshToken, cb)=>{
// Set Cookie to the access token (eventually refresh)
console.log(`Profile is ${profile._json}`);
return cb(null, profile._json);
}
But when I run the profile does not include the idP tokens. What am I missing?