Skip to content

Commit

Permalink
Remove some of the assertions when requesting a create login token
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesis committed Mar 7, 2017
1 parent 8bb5a3a commit b077275
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 b077275

Please sign in to comment.