Best practice for Signup when using new React Auth0 SPA sdk

@mathiasconradt thanks for the help!! I wrote this rule to help me get the number of logins:

  function (user, context, callback) {
  user.user_metadata = user.user_metadata || {};
  user.user_metadata.logins = context.stats.loginsCount;
  context.idToken['https://example.com/logins'] = user.user_metadata.logins;

  auth0.users.updateUserMetadata(user.user_id, user.user_metadata)
    .then(function(){
        callback(null, user, context);
    })
    .catch(function(err){
        callback(err);
    });
}

Why does this rule need ‘http://example.com’ to work and it can’t just be a normal key like ‘logins’?
As for why I’m trying to figure out if the user is new: if it is the user’s first time logging in i would like for them to be redirect to a different url (/signup) and go through a signup process.

Thanks again