dacastro4 / laravel-gmail

Laravel wrapper for the Gmail API
MIT License
289 stars 133 forks source link

Error 400: redirect_uri_mismatch #264

Open oficinaonlinecr opened 1 year ago

oficinaonlinecr commented 1 year ago

Env: prod laravel version: 8.0 php version 7.4

I got this error message: No puedes acceder a esta app porque no cumple con la política OAuth 2.0 de Google.

redirect_uri=http://mayapp.com/api/oauth/gmail/callback

In app OAuth consent screen I have: redirect_uri=https://mayapp.com/api/oauth/gmail/callback

It looks like the http protocol is not set properly

Can you check if it's something in this package or is it from Google's package?

https://developers.google.com/identity/protocols/oauth2/web-server?hl=es-419#authorization-errors-redirect-uri-mismatch