Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript federatedSignIn Error #7

Open
josephgoksu opened this issue May 10, 2020 · 1 comment
Open

Typescript federatedSignIn Error #7

josephgoksu opened this issue May 10, 2020 · 1 comment

Comments

@josephgoksu
Copy link

josephgoksu commented May 10, 2020

Example Code and Possible Error

<button
     type="button"
     onClick={() => Auth.federatedSignIn({provider: 'Google'})}>
     Sign In with Google
</button>

How to fix

import { CognitoHostedUIIdentityProvider } from '@aws-amplify/auth/lib/types';

<button
     type="button"
     onClick={() => Auth.federatedSignIn({provider: CognitoHostedUIIdentityProvider.Google})}>
     Sign In with Google
</button>
@jgiunta1
Copy link

jgiunta1 commented Jan 2, 2021

For some reason this isn't working for facebook. I'm getting a 404 and its calling the identity pool endpoint instead of the user pool endpoint.

Repository owner deleted a comment from tobarbaro Feb 10, 2024
Repository owner deleted a comment from tobarbaro Feb 10, 2024
@github-staff github-staff deleted a comment from BenediktMiller Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@josephgoksu @jgiunta1 and others