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

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 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.

Hi @TimB,

Welcome to the Auth0 Community!

The code shown in that topic is for Auth0 Rules. If you want to use actions, you will have to migrate that code to the format expected by actions.

Hope that helps!

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