Token is not from a supported provider of this identity pool

If you are getting the following error, probably you have the wrong User Pool ID or App Client Id in your identity pool.

To check go to Federated Identities dashboard. Click on Edit Identity Pool. Go to Authentication providers and check Cognito tab for the User Pool ID and App Client id.

If one of your social sign in failing with the above error then check the corresponding tab such as Apple or Facebook and check if Apple Services ID or Facebook App ID is correct.