Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not working with me #7

Open
dhruv850 opened this issue Jun 20, 2020 · 3 comments
Open

It is not working with me #7

dhruv850 opened this issue Jun 20, 2020 · 3 comments

Comments

@dhruv850
Copy link

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
@hithaaaa
Copy link

@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.

@dhruv850
Copy link
Author

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

@hithaaaa
Copy link

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

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

No branches or pull requests

2 participants