Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google API sends account email alert

I'm developing an application that utilizes Google sign-in and the Gmail API. My test users, once logged in, keep receiving an email like the attached file.

Other applications with similar functionality (basic email access) do not seem to trigger these emails. Any ideas? It makes my app seem less trustworthy.

enter image description here

like image 268
Matthew Reilly Avatar asked Oct 29 '22 02:10

Matthew Reilly


1 Answers

One possibility is that you are obtaining tokens with offline=true indicating a requirement to use the refresh token to renew expired access tokens. If you only require short-term access, perhaps you should remove the offline parameter in the construction of your auth request link. In this scenario once the access token expires, then the scope will no longer be usable or renewable and so your end-users should not receive the alert emails.

like image 141
Peter Scott Avatar answered Nov 09 '22 07:11

Peter Scott