Closed k7d closed 12 years ago
PhAuthenticationToken init method was setting token's expiry date to nil if secondsToExpiry was negative.
However PhFacebook.m is assuming that token is valid when expiry is nil:
if (_authToken.expiry == nil || [[_authToken.expiry laterDate: [NSDate date]] isEqual: _authToken.expiry]) validToken = YES;
Just noticed this was introduced in pull request #16. So possibly this fix as-it-is may break something else... didn't have time to investigate yet. Maybe you have other ideas how to fix it?
PhAuthenticationToken init method was setting token's expiry date to nil if secondsToExpiry was negative.
However PhFacebook.m is assuming that token is valid when expiry is nil: