Token is not from a supported provider of this identity pool.(React Native with Google signin)

AWS.config.region = 'us-east-1';
AWS.config.credentials = new AWS.CognitoIdentityCredentials({
IdentityPoolId: 'us-east-1:2c9637fb-8791-4f56-9174-eda8b52ffa',
 Logins: {
    'accounts.google.com': token
  }
});

AWS.config.credentials.get(function (error) {
  console.log(error);
 //NotAuthorizedException: Token is not from a supported provider of 
this identity pool.
});

i want login on aws with google and facebook signin so i am uanable to login with gmail and facebook.

i am trying but i'm getting error

NotAuthorizedException: Token is not from supported provider of this identity pool.

what am I doing wrong?