Pre User Registration flow action with social signup

Hi @bmanza,

Welcome to the Auth0 Community!

For Social Connection users, I recommend using a Post-login action to add your custom logic.

For example:

exports.onExecutePostLogin = async (event, api) => {
  if (event.stats.logins_count === 1 && event.connection.strategy  === event.connection.name){
  //Your logic here  
}
};

Reference doc: Actions Triggers: post-login - Event Object

Does that help?

Thanks,
Rueben

1 Like