Created
March 24, 2016 09:35
-
-
Save Premal-Khetani/738b57cb82ce7ea6facc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDictionary *jsonDataTobeEncode = @{@"sub":@"123456",@"name":@"Premal",@"admin": @true}; | |
NSString *jwtTokenValue = [JWTBuilder encodePayload:jsonDataTobeEncode].secret(@"SecretKey").algorithm([JWTAlgorithmFactory algorithmByName:@"HS256"]).encode; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment