Closed SANKARAMDAS closed 2 years ago
Try putting the clientId in the string instead of process.env
Hi @galpodlipnik1 I did that also, now the popup client_id is coming like that(img) still it blank..
The popup url still shows clientId undefined. And on the console the error is - [GSI_LOGGER]: The given client ID is not found.
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?
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
The popup url still shows clientId undefined. And on the console the error is - [GSI_LOGGER]: The given client ID is not found.
correct it to .env.development
It's working, thanks @Aradhya-Shaswat. It's working fine now.
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.
.