DEV Community

Discussion on: Adding Google Sign In to your Web App with AWS Amplify

Collapse
 
smesle profile image
sMesle

Hi Nader, thanks for this tutorial it works great!

However when you log in with Google when you come back to your main page (localhost:3000) you can't retrieve user information unless you click the button "Check User". It's an issue because when you log in you may want automatically retrieve user information without clicking on a button.

Thanks in advance for your answer!

Collapse
 
jimingeorge profile image
jimingeorge

HI @smesle , I too am facing the exact problem. Where you able to find a fix to this?

Collapse
 
smesle profile image
sMesle

You need to add a listen event, it's a bit tricky but i follow the docs here : docs.amplify.aws/lib/auth/social/q...
I think it should fix your issue

Thread Thread
 
jimingeorge profile image
jimingeorge

thanks a bunch @smesle . It worked all of a sudden today.. :D