I have created a User pool and Federated Identities in AWS. Everything works fine I'm facing an issue, when I log in with google with [email protected] an id is created in federated Identities, and when I log in with Facebook with [email protected] I want to get them merged with the previous identity ID instead of creating a new one.
I'm using AWS amplify to get them authenticated
Auth.federatedSignIn(provider, {}, {});
Please provide a solution for this.