Auth0 actions user registration not running on google-auth

So I wrote a custom action to send user email to zapier, triggered on post user registration but it only works when signup is done using username-password but skips the action run when signup is using google or discord.
The new user is created in Auth0 but the event is not triggered.

Any way we can run the events in case of google-auth and discord-auth too ?

1 Like

Hey @abhijeet welcome to the community!

What you’re experiencing is expected behavior for social/federated users - You’ll need to either use a rule or post-login Action for these users specifically.

Hope this helps!

1 Like

Hey @tyf Thanks for the suggestion of post-login but i even tried using that trigger.
and checking whether login count 1 then run the action but still facing the same issue.
That action also is not working for google-auth and discord-login.

Do you have any examples or something i could refer too ?

1 Like

Hey @abhijeet no problem, happy to help!

Hmm, the post login Action should trigger regardless of whether a user is Auth0 or federated (social connection) - I was just able to confirm this myself with Google user and a simple test Action like:

exports.onExecutePostLogin = async (event, api) => {

  if (event.authorization) {
    if (event.stats.logins_count == 1){
      console.log("made it here!")
    }
  
}
2 Likes

Thanks @tyf though the action didnt work but the creating rules resolved the issue.

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