Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Social Login #9

Open
marclave opened this issue Aug 10, 2017 · 2 comments
Open

Social Login #9

marclave opened this issue Aug 10, 2017 · 2 comments

Comments

@marclave
Copy link

Have you had any luck with social logins? More of a feature request. Was exploring cognito and tried to integrate this repo with cognito google sign in and i get the id token but at this step

    Config.credentials = new CognitoIdentityCredentials({
      IdentityPoolId: this.options.IdentityPoolId,
      Logins: {
        'accounts.google.com': googleUser.getAuthResponse().id_token
      }
    }, {
      region: this.options.region
    })

    Config.credentials.get((error) => {
      // Access AWS resources here.
     });

it sets it but isAuthenticated always returns false because this.userPool.getCurrentUser() is null

@marclave
Copy link
Author

I tried but no dice 😭

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants