We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06fe8f3 commit 40ff0e5Copy full SHA for 40ff0e5
code/Gmail.cs
@@ -139,7 +139,7 @@ public async Task<bool> RefreshToken() {
139
140
// refresh the token and update the token delivery date and time on the interface
141
try {
142
- if (Credential.Token.IsExpired(Credential.Flow.Clock)) {
+ if (Credential.Token.IsStale) {
143
if (await Credential.RefreshTokenAsync(new CancellationToken())) {
144
UI.labelTokenDelivery.Text = Credential.Token.IssuedUtc.ToLocalTime().ToString();
145
}
0 commit comments