From b077275520ad4068d74c68f21481edb36f73a79d Mon Sep 17 00:00:00 2001 From: Constantin Lungu Date: Tue, 7 Mar 2017 10:46:36 +0200 Subject: [PATCH] Remove some of the assertions when requesting a create login token --- Classes/API/SEAPIRequestManager.m | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Classes/API/SEAPIRequestManager.m b/Classes/API/SEAPIRequestManager.m index 3da2a85..6e3e7c5 100644 --- a/Classes/API/SEAPIRequestManager.m +++ b/Classes/API/SEAPIRequestManager.m @@ -548,9 +548,6 @@ - (void)requestCreateTokenWithParameters:(NSDictionary*)parameters failure:(SEAPIRequestFailureBlock)failure { NSAssert(sessionHeaders[kCustomerSecretHeaderKey] != nil, @"Customer Secret cannot be nil."); - NSAssert(parameters[kCountryCodeKey] != nil, @"Country code cannot be nil."); - NSAssert(parameters[kProviderCodeKey] != nil, @"Provider code cannot be nil."); - NSAssert(parameters[kReturnToKey] != nil, @"Return to cannot be nil."); [self requestTokenWithAction:kLoginActionCreate headers:sessionHeaders @@ -611,10 +608,10 @@ - (instancetype)init } - (void)requestTokenWithAction:(NSString*)path - headers:(NSDictionary*)headers - parameters:(NSDictionary*)parameters - success:(void (^)(NSDictionary* responseObject))success - failure:(SEAPIRequestFailureBlock)failure + headers:(NSDictionary*)headers + parameters:(NSDictionary*)parameters + success:(void (^)(NSDictionary* responseObject))success + failure:(SEAPIRequestFailureBlock)failure { NSMutableDictionary* mutableParams = parameters.mutableCopy;