Account Linking Using Post-Login Actions

Problem Statement

Is it possible to link user accounts using a Post-Login Action?


Actions can be used to call the Management API to link user accounts. Auth0 does not automatically change to the correct primary user after Account Linking, so it must be changed within the Actions code upon successful Account Linking with api.authentication.setPrimaryUser().

The process for linking accounts in actions, along with an example can be found here: