Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

popup_closed_by_user #536

Open
vaibhava17 opened this issue Aug 1, 2022 · 13 comments
Open

popup_closed_by_user #536

vaibhava17 opened this issue Aug 1, 2022 · 13 comments

Comments

@vaibhava17
Copy link

Showing Error {error: 'popup_closed_by_user'} all the time

@caotrongtin99
Copy link

I have same issue

@Nases
Copy link

Nases commented Aug 5, 2022

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

@Yeom-JinHo
Copy link

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

@Yeom-JinHo
Copy link

Yeom-JinHo commented Aug 5, 2022

I solved this problem with @react-oauth/google

@ezra-works
Copy link

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

@vaibhava17
Copy link
Author

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

@lvxhnat
Copy link

lvxhnat commented Aug 9, 2022

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',
    });
});

@abhi-qb
Copy link

abhi-qb commented Aug 10, 2022

Having the same issue, any updates on this?

@Jay-study-nildana
Copy link

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.

@jun7867
Copy link

jun7867 commented Sep 16, 2022

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!!!

@itsaruproy
Copy link

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

@maneesh
Copy link

maneesh commented Oct 6, 2022

facing same issue. Is there any other way

@Shaker-Pelcro
Copy link

Same here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests