Skip to content

Commit 40ff0e5

Browse files
🐛 fix obsolete method
1 parent 06fe8f3 commit 40ff0e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/Gmail.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public async Task<bool> RefreshToken() {
139139

140140
// refresh the token and update the token delivery date and time on the interface
141141
try {
142-
if (Credential.Token.IsExpired(Credential.Flow.Clock)) {
142+
if (Credential.Token.IsStale) {
143143
if (await Credential.RefreshTokenAsync(new CancellationToken())) {
144144
UI.labelTokenDelivery.Text = Credential.Token.IssuedUtc.ToLocalTime().ToString();
145145
}

0 commit comments

Comments
 (0)