SimpleAuth icon indicating copy to clipboard operation
SimpleAuth copied to clipboard

SimpleAuthFoursquareWebLoginViewController#initialRequest method isn't loading parameters correctly

Open ghost opened this issue 9 years ago • 0 comments

So the parameters dictionary in the initialRequest method of SimpleAuthFoursquareWebLoginViewController keeps throwing the following error:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'

When I hardcode the values of parameters with my own client_id and redirect_uri everything works as expected. So it looks like the problem lies in retrieving the dictionary that is passed to SimpleAuth.configuration[@"foursquare-web"]; that is, self.options[@"client_id"] and self.options[SimpleAuthRedirectURIKey] are both returning nil values.

Thanks

ghost avatar Sep 26 '16 19:09 ghost