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 there!

As this topic is related to Actions and Rules & Hooks are being deprecated soon in favor of Actions, I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

Learn more here!