Account linking using the management API

It depends on which account you are setting as the primary user vs secondary user.

If the user signs up with their Facebook account and it is set as the primary user during account linking, the user should remain logged in as the new facebook account they just signed up with.

If the user signs up with their Facebook account, but abc@gmail.com is set as the primary user, you must also set and return abc@gmail.com as the event.user in the Action. This will let the authentication flow continue for the user and allow them to be remained logged in, but as the original abc@gmail.com account.

Note: I’ve only done this for Auth0 Rules, but for Auth0 Actions please reference this previous community post - specifically the part about returning the “new” primary user in the update

1 Like