This is a client side integration with the GetId and GetCredentialsForIdentity actions of AWS Cognito Identity Pools to exchange a federated identiy for AWS credentials.
This library contains two client side actions
GetId
Generates (or retrieves) IdentityID. Supplying multiple logins will create an implicit linked account.
Documentation here GetId - Amazon Cognito Federated Identities
GetCredentialsForIdentity
Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.
cognito-identity.amazonaws.com
Documentation here GetCredentialsForIdentity - Amazon Cognito Federated Identities