'can i use "amazon-cognito-identity-js" for federated authentication with cognito

I use "amazon-cognito-identity-js" javascript library to integrate Cognito for my react app. it seems that only supports email/password authentication only.

I wanna use federation authentication (eg: google) with my app.

so is it possible with this library? I know I can use "aws-amplify".

related to this question



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source