Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(109)

Unified Diff: Src/GoogleApis.Auth/OAuth2/Responses/TokenResponse.cs

Issue 184430043: Issue 503: TokenResponse.IsExpired returns true at one minute after token expiration (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Patch Set: revert projects Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Src/GoogleApis.Auth.Tests/OAuth2/Responses/TokenResponseTests.cs ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Src/GoogleApis.Auth/OAuth2/Responses/TokenResponse.cs
===================================================================
--- a/Src/GoogleApis.Auth/OAuth2/Responses/TokenResponse.cs
b/Src/GoogleApis.Auth/OAuth2/Responses/TokenResponse.cs
@@ -70,7 70,7 @@
return true;
}
- return Issued.AddSeconds(ExpiresInSeconds.Value 60) <= clock.Now;
return Issued.AddSeconds(ExpiresInSeconds.Value - 60) <= clock.Now;
}
}
}
« no previous file with comments | « Src/GoogleApis.Auth.Tests/OAuth2/Responses/TokenResponseTests.cs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b