Closed (fixed)
Project:
Google API PHP Client
Version:
8.x-4.3
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2024 at 17:41 UTC
Updated:
1 Aug 2026 at 05:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
thedut commentedHello,
Here is a patch fixing this issue.
You should first save the Client entity.
This issue occurs when revoking a client with an expired token.
Thanks to this patch : Client with expired token won't need manual revokation.
Comment #3
thedut commentedComment #4
thedut commentedHello here is the new patch, remplacing the previous one.
This patch protect the token_value from the Client entity to be overwriten by an invalid token.
In my case : when offline access expired (after 7 days) : during the first load of the client entity and just before trying to recover a new token from the expired token : the expired token was overwritten with an error message.
['error' => 'invalid_grant','error_description' => 'Token has been expired or revoked.']--> when googleClient->fetchAccessTokenWithRefreshToken() was called, the token value was not there anymore et refreshing the token was a failure.
This patch to fix this issue.
Comment #8
elaman