admin管理员组文章数量:1417680
I have successfully used the Gmail API with Google Cloud Console and OAuth Playground to send emails. It worked for a few days, but after a while, my authentication gets revoked. Even though I make sure to re-enter my OAuth credentials, I still encounter the issue.
Goal: I am trying to create a contact page on my website that allows users to send emails to my inbox using the Gmail API.
Can anyone help me understand why my OAuth tokens are being revoked and how to make sure the email-sending functionality works consistently?
I have successfully used the Gmail API with Google Cloud Console and OAuth Playground to send emails. It worked for a few days, but after a while, my authentication gets revoked. Even though I make sure to re-enter my OAuth credentials, I still encounter the issue.
Goal: I am trying to create a contact page on my website that allows users to send emails to my inbox using the Gmail API.
Can anyone help me understand why my OAuth tokens are being revoked and how to make sure the email-sending functionality works consistently?
Share Improve this question asked Jan 31 at 10:09 OXYCNR1OXYCNR1 1 3- Oauth playground is just for testing. Its tokens are not going to last more then 3 days. You should implement oauth2 in your application if you want it to last longer. – Linda Lawton - DaImTo Commented Feb 1 at 16:39
- Do you have any documentation regarding that? I have tried to implement it but i get an error about username and password not accepted. I double check on my credentials and refresh token and it seems fine – OXYCNR1 Commented Feb 9 at 11:44
- Without seeing your code its hard to help more – Linda Lawton - DaImTo Commented Feb 9 at 17:30
1 Answer
Reset to default -1Based on the description you have provided, my best answer is that if your Outh Client ID and API key are still available in Cloud Dashboard(which you can check here: https://console.cloud.google/apis/api/gmail.googleapis/credentials?authuser=2&inv=1&invt=AboUDA&project=inboxiq-432403), I assume you may have gone over the allotted API credits.
It is also standard for OAuth Playground to delete access tokens after 3589 seconds, so that could be it.
Apologies I couldn't be more helpful.
本文标签: Google Oauth Refresh TokenStack Overflow
版权声明:本文标题:Google Oauth Refresh Token - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745269916a2650826.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论