I have a regular Cognito user setup, and we have a lambda function which links social provider accounts to this regular user using the adminLinkProviderForUser
API.
After this happens, the user pool user correctly shows the link in the identities
user attribute:
[{"userId":"16625876272112","providerName":"Facebook","providerType":"Facebook","issuer":null,"primary":false,"dateCreated":1519293430376}]
From this point, I am struggling to actually authenticate the Facebook user on their next login. I would expect to be able to sign-in to cognito with an facebook access token and somehow cognito return a valid token for the linked cognito user. Currently I can only do a basic auth (username + password) to retrieve it. So at the moment I can't use the link for anything.
Any help would be greatly apprechiated.
Thanks.