I have a problem with my OAuth 2.0 identifier, my identifier expires after a few days and I have not found a solution except to recreate a new identifier.
After a few days the identifier no longer works and this error is given to me: raise exceptions.RefreshError( google.auth.exceptions.RefreshError: ('deleted_client: The OAuth client was deleted.', {'error': 'deleted_client', 'error_description': 'The OAuth client was deleted.'})
But my identifier is not deleted, it is still present on my dashboard.
Hi @cesar2166,
Welcome to Google Cloud Community!
The error message "deleted_client: The OAuth client was deleted" indicates that your OAuth client application is no longer authorized to use the Google APIs. While your identifier might still be present on your dashboard, it seems the authorization has been revoked.
The token may have expired or has been invalidated. Authenticate the user again and ask for user consent to obtain new tokens. Ensure that your application has been configured correctly and that you are using the correct tokens and parameters in your request. Otherwise, the user account may have been deleted or disabled.
Please see Obtaining OAuth 2.0 access tokens, to request tokens on the user's behalf.
Note that your application must have consent before it can execute a Google API request that requires user authorization.
For more information regarding OAuth 2.0 tokens, please see the following documentations:
I hope the above information is helpful.