Skip to content

A simple class to decode a JWT token into a payload dictionary and/or extract the expiration date epoch without knowing the secret or the algorithm used to generate it.

License

Notifications You must be signed in to change notification settings

chyrta/JWTDecoder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWTDecoder

A simple class to decode a JWT token into a dictionary and/or extract the expiration date epoch.

Decode JWT token payload and return JSON dictionary

NSString* token = @"...";

NSDictionary* decodedDictionary = [JWTDecoder decodePayloadFromJWTToken:token]; 

Decode JWT token payload and return the token expiration date epoch

NSString* token = @"...";

NSString* expirationEpoch = [JWTDecoder expirationEpochFromJWTToken:token]; 

About

A simple class to decode a JWT token into a payload dictionary and/or extract the expiration date epoch without knowing the secret or the algorithm used to generate it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%