Skip to content

Instantly share code, notes, and snippets.

@Premal-Khetani
Created March 24, 2016 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Premal-Khetani/ac15a462ec34adde28d2 to your computer and use it in GitHub Desktop.
Save Premal-Khetani/ac15a462ec34adde28d2 to your computer and use it in GitHub Desktop.
I am using the library to generate the token for the data. Every time i run the app and it crash and give me following error
-[NSConcreteData base64UrlEncodedString]: unrecognized selector sent to instance 0x7fa9ba8145b0
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteData base64UrlEncodedString]: unrecognized selector sent to instance 0x7fa9ba8145b0'
I put debug points and found that in the JWT.m file there is method named** - (NSString )encodeSegment:(id)theSegment withError:(NSError *)error **. In this method there is the code as below
`NSString *encodedSegment = nil;
if (encodedSegmentData) {
encodedSegment = [encodedSegmentData base64UrlEncodedString];
}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment