-
-
Notifications
You must be signed in to change notification settings - Fork 427
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
Solution for -> popup closed by user error during the authentication #17
Comments
Could you leave an example on how to add before the function responseGoogle, please? I've tried every way I can think of but I cant get it to work. Still a noob would appreciate being able to see what I'm doing wrong. Thank you |
Thanks for your solution but I found that the part 3 is something wrong ...
|
thank you so much!! it is worked |
According to new 2022 update you have to do following steps :
npm i gapi-script
In login.jsx add ->
import { gapi } from "gapi-script";
And at last add this code before function responseGoogle
window.gapi.load('client:auth2', () => { window.gapi.client.init({ clientId:
${process.env.REACT_APP_GOOGLE_API_TOKEN}, plugin_name: "chat" })})
The text was updated successfully, but these errors were encountered: