nxtbgthng / OAuth2Client

Client library for OAuth2 (currently built against draft 10 of the OAuth2 spec)
855 stars 217 forks source link

NXOAuth2AccessToken.hasExpired method works incorrectly #165

Closed dodikk closed 9 years ago

dodikk commented 9 years ago
(lldb) p token.doesExpire
(BOOL) $1 = YES
(lldb) p token.hasExpired
(BOOL) $2 = NO
(lldb) po [NSDate date]
2015-04-07 14:32:48 +0000

(lldb) po [token expiresAt]
2015-04-14 14:10:43 +0000
carolanitz commented 9 years ago

look at the date it expires a week later