google-api-dotnet-client: Token is not showing expired

I am using the standard clock, but I am in Japan (which means different time zone). The permission has NOT been revoked and I can still see it on the permissions page : https://myaccount.google.com/u/1/permissions

cred.Issued is {7/17/2018 11:53:49 AM} about 30 minutes ago, expiredTimeInSeconds is 3600

image

With this bug it seems there is no way to revoke permission to the app.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 23 (7 by maintainers)

Most upvoted comments

The access-token is now refreshed at 6 minutes before it expires. See TokenResponse.cs. The refreshing itself is managed by TokenRefreshManager.cs. The check whether to refresh is in AuthorizationCodeWebApp.cs for web apps, or AuthorizationCodeInstalledApp.cs for installed apps.

@Worthy7 Thanks for reporting this issue, I’ve had a very quick look at the code and can’t immediately see anything wrong. I’ll look at reproducing this in the next day or two.