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

Implicit flow with useGoogleLogin hook #307

Open
Lenur29 opened this issue Sep 19, 2023 · 0 comments
Open

Implicit flow with useGoogleLogin hook #307

Lenur29 opened this issue Sep 19, 2023 · 0 comments

Comments

@Lenur29
Copy link

Lenur29 commented Sep 19, 2023

Hi @MomenSherif. First of all thank you very much for this amazing library. I have a question. Can I use an implicit flow using useGoogleLogin hook? I get the tokenResponse and after that send it to backend. And then I get the user info from the backend. Is it possible to implement like this? I tried it and it works only when I launch my application on localhost. When I deploy it, it does not work. onSuccess function is not called and there are no any errors in the console. I click on a button Sign up with google like I do on localhost, then it shows me google authorization page, I choose my account and click. After that nothing happens. Can it be because of using an implicit flow in a way I described?

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

1 participant