Skip to content

Commit 718b403

Browse files
committed
Remove spurious kSFOAuthErrorClientBlocked integer constants
client_blocked and client_blocked_retry should be handled via the new SFOAuthErrorCode enum, not by extending the legacy NSError integer code mapping. Callers switch on response.error.errorCode, not error.code.
1 parent 271552f commit 718b403

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • libs/SalesforceSDKCore/SalesforceSDKCore/Classes/Util

libs/SalesforceSDKCore/SalesforceSDKCore/Classes/Util/SFSDKOAuth2.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
NSString * const kSFOAuthErrorDomain = @"com.salesforce.OAuth.ErrorDomain";
4040
const NSTimeInterval kSFOAuthDefaultTimeout = 120.0; // seconds
4141

42-
static const NSInteger kSFOAuthErrorClientBlocked = 667;
43-
static const NSInteger kSFOAuthErrorClientBlockedRetry = 668;
4442

4543
@interface SFSDKOAuthTokenEndpointErrorResponse() {
4644
NSInteger _errorCode;
@@ -540,10 +538,6 @@ + (NSError *)errorWithType:(NSString *)type description:(NSString *)description
540538
code = kSFOAuthErrorUnknownAdvancedAuthConfig;
541539
} else if ([type isEqualToString:@"jwt_launch_failed"]) {
542540
code = kSFOAuthErrorJWTInvalidGrant;
543-
} else if ([type isEqualToString:@"client_blocked"]) {
544-
code = kSFOAuthErrorClientBlocked;
545-
} else if ([type isEqualToString:@"client_blocked_retry"]) {
546-
code = kSFOAuthErrorClientBlockedRetry;
547541
}
548542
NSMutableDictionary *userInfoDict = [NSMutableDictionary dictionaryWithDictionary:@{kSFOAuthError: type, NSLocalizedDescriptionKey: description}];
549543
if (underlyingError != nil) {

0 commit comments

Comments
 (0)