Search code examples
oauth-2.0oauthgoogle-oauthgoogle-developers-console

The application will disappear from the list of applications with the received access


Hello everyone and firstly Im sorry for my lame English.

From time to time, we have problems with updating the token, or rather, we simply can not use the refresh_token This is what it looks like:

  1. We allow the app access manually and get the first access_token and refresh_token. At this stage, everything is OK, the application is in the list that was granted access (check through this page: https://myaccount.google.com/permissions ):

Screenshot (apps with the received access)

  1. AcessToken successfully used and updated for some time (usually several weeks), but then the app from the list of apps that got access disappears (https://myaccount.google.com/permissions)

And disappears as if someone manually denies him access.

And, of course, the last access_token stops working, and with it the refresh_token. After that, we again need to manually confirm the app's access for the first time. Because refresh_token, certainly, is not valid after the app disappears from the list.

Please, anybody, tell me what this might be related to. And for what reason can an app disappear from the list, if no one manually restricts access to app?

Maybe there are some reasons: improper use of tokens and so on-the reasons why the application may disappear. Or private account settings that we don't know about? We will be glad to receive any suggestions, thank you in advance.


Solution

  • If your application is still in testing or has not been though the verification process then refresh tokens will expire between one to two weeks. This may also cause the application to be removed from the users permission, however I cant say I have actually checked but it makes sense. From googles end the easiest way to ensure a refresh token will expire would be to revoke the users permission.

    enter image description here

    Set the app to production and apply for verification. Should fix the issue.

    enter image description here