Hi team,
I was wondering if it was possible to “change” the primary user during a post-login action and still authorize the user correctly.
I need this for a passwordless sms journey. As the customer tries to log in using the passwordless sms I have created an action to fetch the primary profile (email) and then link it with the secondary profile (sms) and then it should switch to the profile and continue further.
Currently, it leads to unauthorized. I was able to achieve this successfully before in auth0 rules. While migrating that rule to action I am not able to achieve the same results.
Is this unsupported or is there some other way to do it?
Thanks & regards
Mohit Singh