adrianhajdin / project_tiktik

https://jsmastery.pro
598 stars 180 forks source link

After clicking on Sign in with Google blank popup coming #3

Closed SANKARAMDAS closed 2 years ago

SANKARAMDAS commented 2 years ago

I double checked with the Google Cloud Credential and OAuth consent screen setting's and thses 2 pages code are same with tutorial no differences there. And also copy the Client Id and proparly past it on env file everything is same nothing wrong there, still whenever try to login with Sign in with Google, a blank pop us is showing. On the popup url is like this--https://accounts.google.com/gsi/select?client_id=undefined&ux_mode=popup&...... not taking the clientId. Any Idea how to fix it.
2022-07-11 (2) 2022-07-11 (3) .

galpodlipnik1 commented 2 years ago

Try putting the clientId in the string instead of process.env

SANKARAMDAS commented 2 years ago

Hi @galpodlipnik1 I did that also, now the popup client_id is coming like that(img) still it blank.. 2022-07-12 2022-07-12 (2)

SANKARAMDAS commented 2 years ago

The popup url still shows clientId undefined. And on the console the error is - [GSI_LOGGER]: The given client ID is not found.

Inked2022-07-12 (4) 2022-07-12 (3)

vaniadimova commented 2 years ago

I am getting the same error after deployment on Varcel it works on local npm start also works. did anyone resolve it, maybe we can deploy on Netlify, this resolved it for me in the past?

Aradhya-Shaswat commented 2 years ago

Try to not make any production build only use it in developement mode [npm run dev]

if you made then delete .next folder and make it again by running npm run dev

and rename .env to .env.development incase you have done it

Aradhya-Shaswat commented 2 years ago

The popup url still shows clientId undefined. And on the console the error is - [GSI_LOGGER]: The given client ID is not found.

Inked2022-07-12 (4) 2022-07-12 (3)

correct it to .env.development

SANKARAMDAS commented 2 years ago

It's working, thanks @Aradhya-Shaswat. It's working fine now.