adrianhajdin / project_mern_memories

This is a code repository for the corresponding video tutorial. Using React, Node.js, Express & MongoDB you'll learn how to build a Full Stack MERN Application - from start to finish. The App is called "Memories" and it is a simple social media app that allows users to post interesting events that happened in their lives.
https://youtube.com/playlist?list=PL6QREj8te1P7VSwhrMf3D3Xt4V6_SRkhu
5k stars 1.84k forks source link

Google Sign in issue "popup_closed_by_user'" persists even after clearing cache #117

Closed Leykwan132 closed 2 years ago

Leykwan132 commented 2 years ago

I was still unable to log in even after clearing cache on macOs. Anyone facing this issue?

VanoVasilyan commented 2 years ago

I was still unable to log in even after clearing cache on macOs. Anyone facing this issue?

Hi, I hope this will help))

Step 1. import { gapi } from 'gapi-script' Step 2. use this code in your Auth component

useEffect(() => { function start() { gapi.auth2.init({ client_id: clientId }) } gapi.load('client:auth2', start) })

Leykwan132 commented 2 years ago

That did the magic! Thank you so much!

VanoVasilyan commented 2 years ago

That did the magic! Thank you so much!

You are welcome ))