令牌不是来自此身份池的受支持提供者。(使用Google登录来响应本机)

时间:2019-01-11 05:07:33

标签: javascript amazon-web-services react-native federated-identity

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.
});

我想使用Google和Facebook登录在AWS上登录,因此我可以使用gmail和Facebook登录。

我正在尝试但出现错误

NotAuthorizedException:令牌不是来自此身份池的受支持提供者。

我在做什么错了?

0 个答案:

没有答案