Code Monkey home page Code Monkey logo

Comments (13)

lvxhnat avatar lvxhnat commented on June 25, 2024 7

I solved this problem temporarily by doing the following.

  1. npm i gapi-script
  2. Import the gapi-script package in your App.js import { gapi } from 'gapi-script';
  3. In App.js, add the following line
gapi.load('client:auth2', () => {
    gapi.client.init({
        clientId: process.env.REACT_APP_GOOGLE_OAUTH_CLIENT_ID,
        plugin_name: 'chat',
    });
});

from react-google-login.

caotrongtin99 avatar caotrongtin99 commented on June 25, 2024 6

I have same issue

from react-google-login.

Nases avatar Nases commented on June 25, 2024 5

I'm getting

"You have created a new client application that uses libraries for user authentication or authorization that will soon be deprecated. New clients must use the new libraries instead; existing clients must also migrate before these libraries are deprecated. See the Migration Guide for more information."

then

popup_closed_by_user

from react-google-login.

Yeom-JinHo avatar Yeom-JinHo commented on June 25, 2024 4

I solved this problem with @react-oauth/google

from react-google-login.

Jay-study-nildana avatar Jay-study-nildana commented on June 25, 2024 1

I solved this problem temporarily by doing the following.

  1. npm i gapi-script
  2. Import the gapi-script package in your App.js import { gapi } from 'gapi-script';
  3. In App.js, add the following line
gapi.load('client:auth2', () => {
    gapi.client.init({
        clientId: process.env.REACT_APP_GOOGLE_OAUTH_CLIENT_ID,
        plugin_name: 'chat',
    });
});

This worked for me. thank you.

from react-google-login.

jun7867 avatar jun7867 commented on June 25, 2024 1

I solved this problem temporarily by doing the following.

  1. npm i gapi-script
  2. Import the gapi-script package in your App.js import { gapi } from 'gapi-script';
  3. In App.js, add the following line
gapi.load('client:auth2', () => {
    gapi.client.init({
        clientId: process.env.REACT_APP_GOOGLE_OAUTH_CLIENT_ID,
        plugin_name: 'chat',
    });
});

Thank you!!!

from react-google-login.

Yeom-JinHo avatar Yeom-JinHo commented on June 25, 2024

I have same issue.... help ㅠㅠㅠ

from react-google-login.

ezra-works avatar ezra-works commented on June 25, 2024

I had this problem while testing this on localhost:3000

Solved it by
1. Clearing cache
image

2. Enabling cookies for localhost:3000
image

3. Making OAuth consent screen internal ( as I'm testing local)
image

from react-google-login.

vaibhava17 avatar vaibhava17 commented on June 25, 2024

I had this problem while testing this on localhost:3000

Solved it by 1. Clearing cache image

2. Enabling cookies for localhost:3000 image

3. Making OAuth consent screen internal ( as I'm testing local) image

@ezra-moses thanks. I will try this and inform you guys

from react-google-login.

abhi-qb avatar abhi-qb commented on June 25, 2024

Having the same issue, any updates on this?

from react-google-login.

itsaruproy avatar itsaruproy commented on June 25, 2024

Found this npm package https://www.npmjs.com/package/@react-oauth/google
It works and has a detailed documentation

from react-google-login.

maneesh avatar maneesh commented on June 25, 2024

facing same issue. Is there any other way

from react-google-login.

Shaker-Pelcro avatar Shaker-Pelcro commented on June 25, 2024

Same here.

from react-google-login.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.