Skip to content

Commit

Permalink
Merge pull request #75 from nemesis/remove_country_code_assertion
Browse files Browse the repository at this point in the history
Remove some of the assertions when requesting a create login token
  • Loading branch information
nemesis authored Mar 7, 2017
2 parents 8bb5a3a + b077275 commit 92095a8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Classes/API/SEAPIRequestManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 92095a8

Please sign in to comment.