# Post Registration Flow not working

**URL:** <https://community.auth0.com/t/post-registration-flow-not-working/75230>\
**Category:** Get Help\
**Created:** [December 20, 2021, 5:27pm UTC](https://community.auth0.com/t/post-registration-flow-not-working/75230 "2021-12-20T17:27:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![info45](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/info45/32/33258_2.png) [@info45](https://community.auth0.com/u/info45)\
**Post date:** [December 20, 2021, 5:27pm UTC](https://community.auth0.com/t/post-registration-flow-not-working/75230/1 "2021-12-20T17:27:41Z")

</div>

Hi there,  
I’ve recently started to use Flows. When testing my post registration flow works, but when a real user registers my flow doesnt seem to trigger, which includes (1) A notification to slack and (2) A post call to mailchimp. Can someone help me understand why this might be happening? There are no errors…it just doesnt work when actual users register, which should trigger the Post registration flow I have setup. See picture.

 ![Screen Shot 2021-12-20 at 12.27.18 PM](https://global.discourse-cdn.com/auth0/original/3X/9/9/9951db87af868e235f596c41672f96b8c7e7cb1d.png)

---

<div class="post-metadata">

**Author:** ![info45](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/info45/32/33258_2.png) [@info45](https://community.auth0.com/u/info45)\
**Post date:** [December 20, 2021, 7:13pm UTC](https://community.auth0.com/t/post-registration-flow-not-working/75230/2 "2021-12-20T19:13:53Z")

</div>

Noticing now that if a user signs up without a provider (ie just using an email)…the flow works…but if the user uses Google oauth, it doesnt seem to be triggered. Here is what the code looks like, please help!

```auto
exports.onExecutePostUserRegistration = async (event) => {
const slack = require('slack-notify')(event.secrets.SLACK_WEBHOOK_URL);

const message = `A New User just registered, email: ${event.user.email}`;
const channel = '#new-user-notification';

slack.success({
text: message,
channel: channel
});
};

```

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [December 21, 2021, 2:30pm UTC](https://community.auth0.com/t/post-registration-flow-not-working/75230/3 "2021-12-21T14:30:15Z")

</div>

Hi @info45

This hook is only available for database connections. See: [Post-User Registration](https://auth0.com/docs/hooks/extensibility-points/post-user-registration)

If you want to do this for social connections, you’ll need to add it to a rule/action that runs on login, and watches for first login on social connections.

John

---

<div class="post-metadata">

**Author:** ![info45](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/info45/32/33258_2.png) [@info45](https://community.auth0.com/u/info45)\
**Post date:** [December 21, 2021, 3:21pm UTC](https://community.auth0.com/t/post-registration-flow-not-working/75230/4 "2021-12-21T15:21:38Z")

</div>

Thank you @john.gateley . I missed that. Do you happen to have a code snippet i can refer to for the social connection condition? Really appreciate it

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [December 22, 2021, 3:18pm UTC](https://community.auth0.com/t/post-registration-flow-not-working/75230/5 "2021-12-22T15:18:13Z")

</div>

I do not have a sample, sorry, though there may be one in the rules examples in the dashboard.

You check the login count == 1, and the connection is a social connection.

John

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 6, 2022, 3:19pm UTC](https://community.auth0.com/t/post-registration-flow-not-working/75230/6 "2022-01-06T15:19:09Z")

</div>

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