# Error when implementing - Disabling new social accounts while retaining login for existing accounts

**URL:** <https://community.auth0.com/t/error-when-implementing-disabling-new-social-accounts-while-retaining-login-for-existing-accounts/113216>\
**Category:** Get Help\
**Tags:** user-invitation, user-management\
**Created:** [August 9, 2023, 8:00am UTC](https://community.auth0.com/t/error-when-implementing-disabling-new-social-accounts-while-retaining-login-for-existing-accounts/113216 "2023-08-09T08:00:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimB](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@TimB](https://community.auth0.com/u/TimB)\
**Post date:** [August 9, 2023, 8:00am UTC](https://community.auth0.com/t/error-when-implementing-disabling-new-social-accounts-while-retaining-login-for-existing-accounts/113216/1 "2023-08-09T08:00:03Z")

</div>

I am trying to prevent new users using a social login to create a new account, but to permit existing users to login.

I have added an action as described in [this post](https://community.auth0.com/t/remove-social-sign-ups-from-universal-login-but-still-allow-logins/92263) but when I add that action to the login Flow, I get the error below. Can someone let me know what I’m doing wrong? I’m a total noob at this so I presume I’m missing something simple.

Thanks!

# Auth Error

## Authentication process canceled: The PostLogin@v3 Action must export an object having an “onExecutePostLogin” method.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [August 14, 2023, 3:01pm UTC](https://community.auth0.com/t/error-when-implementing-disabling-new-social-accounts-while-retaining-login-for-existing-accounts/113216/3 "2023-08-14T15:01:19Z")

</div>

Hi @TimB,

Welcome to the Auth0 Community!

The code shown in that topic is for [Auth0 Rules](https://auth0.com/docs/customize/rules). If you want to use actions, you will have to migrate that code to the format expected by actions.

Hope that helps!

---

<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:** [August 28, 2023, 3:01pm UTC](https://community.auth0.com/t/error-when-implementing-disabling-new-social-accounts-while-retaining-login-for-existing-accounts/113216/4 "2023-08-28T15:01:40Z")

</div>

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