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.