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