I'm inquiring about the validity of a refresh token for a project which the oAuth Consent Screen publishing status is in "Testing".
Out project is running multiple Cloud Functions to view and book events in the authenticated user primary calendar form externally parsed sources.
The oAuth process is working ok and we are able to insert and view events from the user's calendar without problems for a few days.
However, after a couple of days (around 10) with 3-4 days of non-activity, we are suddenly unable to access the Calendar API with the following error:
google.auth.exceptions.RefreshError: ('invalid_grant: Token has been expired or revoked.', '{\n "error": "invalid_grant",\n "error_description": "Token has been expired or revoked."\n}')
The Cloud Functions are using thye Google Python API library to discover and interact with the Calendar API.
We can also confirm that the user (in this case our test user) did not revoke permission to the app and the account password was not changed.
Are there any limitations on the validity of a refresh token for a project where the Oauth Consent screen publishing status is is set "Testing" and the "User Type" set to external ? (see attached screenshot).
We want to rule out any errors from our side that would lead to this condition before deploying our solution.
Thanks