react-gmail-client icon indicating copy to clipboard operation
react-gmail-client copied to clipboard

It is not working with me

Open dhruv850 opened this issue 5 years ago • 3 comments

Hello , I am trying to see this beautiful application created by you. But somehow when I click on sign in with google than, also give permissions but it is not redirecting. It is just showing me same screen again and again. So far I did follwing steps.

  1. Exported project
  2. added api key and client_id
  3. npm install (ran into python error first time) then second time it worked
  4. npm start

dhruv850 avatar Jun 20 '20 03:06 dhruv850

@dhruv850 Same error here. (npm install didn't work for me either I uninstalled node-sass and installed sass and it worked). I checked the console errors and discovered this is a Cross-Origin-Opener-Policy. Since the project doesn't have a server, the header for COOP cannot be set. Not sure how to fix it.

hithaaaa avatar Jul 22 '23 15:07 hithaaaa

@hithaaaa I have had similar project working which you can find here - https://dhruv850.github.io/Gmail-Client-React/

dhruv850 avatar Jul 22 '23 16:07 dhruv850

@dhruv850 Thanks so much! This project is wonderful, feels like Mr gmail himself! I am getting problems running this code, the request sent to gmail sends a 401 error though my credentials are correct. I have used a similar authentication style before in nodejs and it works. Here's what I've done: Entered my client_id, client_secret, scopes ('https://gmail.googleapis.com') in .env file. Included client_secret in gapi.auth.authorize()

I am not sure if you can help me debug, but what changes should I make in my gmail client configuration for it to work? Thanks!

hithaaaa avatar Jul 22 '23 19:07 hithaaaa