Get email of user with passport and nest js

Hey @zPedrooGF !

You should be able to get the email from the user variable if you add it as a custom claim using an action. For example:

exports.onExecuteAccessTokenExchange = async (event, api) => {
  api.accessToken.setCustomClaim("https://yournamespace/email", event.user.email);
};