Normalized User missing parameters

Hello everybody ,
I have a problem that I can’t solve … when on react I go to get user from the useAuth0 () function some parameters like login_count are missing … someone can tell me why?

Hi @denise.david,

Welcome to the Community!

The user info you receive when you use useAuth0 is based off the user’s ID Token. Only OpenID Connect standard claims are included in the ID Token by default. To add additional custom claims, you can create a Rule such as this:

function(user, context, callback) {
  const namespace = 'https://YOUR_APP_URL';
  context.idToken[namespace + '/loginCount'] = context.stats.loginsCount;
  callback(null, user, context);
}

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.