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

GoogleLogin and useGoogleLogin (implicit & auth-code) do NOT return matching responses #355

Open
kueiRad opened this issue Jul 1, 2024 · 9 comments

Comments

@kueiRad
Copy link

kueiRad commented Jul 1, 2024

GoogleLogin returns keys including a credentials key:value pair. For our login process, we can use this credentials value with jwt.decode to get an Object containing email, first/last name, avatar image.

I'm trying to create a custom button instead of using GoogleLogin, because GoogleLogin seems to be bugged on Mobile developer mode where the right side of the iframe is overflowing and clipping. From the project readme, I have to use useGoogleLogin.

useGoogleLogin with auth-code flow returns "code", which is not jwt, and nowhere does it say what I'm supposed to do with the value of "code".
useGoogleLogin with implicit flow returns "access_token", which is not jwt either.

Your code example just says to console log this code or access_token value, which is not informative. How are you supposed to use useGoogleLogin?

@deepakbytebard
Copy link

Any updates on this? as I am facing the similar issue.

@barankauf
Copy link

I am also interested in how I can use useGoogleLogin to get the same response as the default one.

@kueiRad
Copy link
Author

kueiRad commented Sep 19, 2024

no updates yet, in the mean time I did some hacky css things (overlay an image of what it looks like correctly) to keep using the GoogleLogin component, hopefully a dev responds

@Micode360
Copy link

Still no fix on this? I need this now. This is so frustrating.

@barankauf
Copy link

@kueiRad how did you handle the event propagation if the user clicks the image?

@kueiRad
Copy link
Author

kueiRad commented Nov 4, 2024

@kueiRad how did you handle the event propagation if the user clicks the image?

I wrote a javascript onclick on the image to create a click event for the GoogleLogin component

@barankauf
Copy link

@kueiRad how did you handle the event propagation if the user clicks the image?

I wrote a javascript onclick on the image to create a click event for the GoogleLogin component

Which method did you call? Is there a google login method?

@Meet-katrodiya
Copy link

Are there any updates on this? I am facing the same issue.

@roanrobersson
Copy link

Same issue here

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

6 participants