Reauthenticate user inside post login action when linking profiles

So I’ve created an action where I link two profiles, one has auth0 as provider and the second has waaf as provider. I’ve managed to link the profiles (main profile being auth0) but after login I still get logged in as the waaf one, if I logout and login again then I get logged in as the auth0 profile. What should I do to get logged in as the auth0 profile right after linking the two profiles?

EDIT: The second provider is waad, not waaf.

Hey team! :waving_hand:

Since this topic touches Auth0 Actions, quick heads-up that we’re hosting an Ask Me Anything dedicated to Actions with Gaston Danilo Asis Sanchez, Senior Technical Product Manager. We’ll cover practical usage, new capabilities like Transaction Metadata and Actions Types, plus a peek at what’s next. :sparkles:

  • Submit questions now through Aug 26 :writing_hand:
  • Get detailed written answers live on Aug 27, 9–11 AM PT :speech_balloon:

Earn community points + a badge :trophy:. If you’re exploring how Actions can streamline your auth flows, this is a great time to get direct guidance from the team.
Join the AMA & drop your questions here: August 27 Auth0 Community Ask Me Anything: Actions

Dawid