I have been using in B2C a user flow, in which the user can sign up either by using local sign up (email & password) or social (eg. gmail). When I run the following scenario
1. Open app and sign up with email-password, using myemail@something.com
2. In B2C I can see the myemail@something.com created
3. Open app and sign up with social (eg. gmail account myemail@something.com)
4. In B2C I can see another user created, with this gmail account.
However, what I want is to be able to connect these 2 accounts. In other words, whenever a user signs up with a social, I want to hook up a logic to see whether a user with this email already exists and connect it. As an extension to this scenario, I want to have a "connect" option once the user is signed in the app (eg. when user signed in with the local account, I want to be able to make a custom call to B2C to connect a new social account to a specific user).
Is this possible?