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 ?
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.
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 ?
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!")
}
}