- fix check expiration date
This commit is contained in:
parent
628ab05ebc
commit
2567a56e2e
@ -8,7 +8,7 @@
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'PNObject'
|
||||
s.version = '2.4.3'
|
||||
s.version = '2.4.4'
|
||||
s.summary = 'PNObject is a simple replica of the more complex ParseObject'
|
||||
|
||||
|
||||
|
||||
@ -836,7 +836,7 @@ static bool isFirstAccess = YES;
|
||||
case OAuthModeClientCredential:{
|
||||
|
||||
AFOAuthCredential *credential = [AFOAuthCredential retrieveCredentialWithIdentifier:PNObjectServiceClientCredentialIdentifier];
|
||||
if (!credential || (credential && ![credential isExpired])) {
|
||||
if (!credential || (credential && [credential isExpired])) {
|
||||
return NO;
|
||||
}
|
||||
[_managerHttpRequestSerializer setAuthorizationHeaderFieldWithCredential:credential];
|
||||
@ -847,7 +847,7 @@ static bool isFirstAccess = YES;
|
||||
case OAuthModePassword:{
|
||||
|
||||
AFOAuthCredential *credential = [AFOAuthCredential retrieveCredentialWithIdentifier:PNObjectServiceUserCredentialIdentifier];
|
||||
if (!credential || (credential && ![credential isExpired])) {
|
||||
if (!credential || (credential && [credential isExpired])) {
|
||||
return NO;
|
||||
}
|
||||
[_managerHttpRequestSerializer setAuthorizationHeaderFieldWithCredential:credential];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user