- Makes
isExpired
return false when when there's noexp
claim. - Makes both
getExpirationDate
andgetRemainingTime
return null when there's noexp
claim. - Makes
getTokenTime
return null when there's noiat
claim.
- getRemainingTime() method
- Migration to null safety
- Updated SDK dependency version to 2.12.0+
- Avoid all null returns and replaced them with
FormatException
throws when tokens are not valid. This is a breaking change as users expecting null returns will now get an exception instead. - Added
JwtDecoder
methods documentation. - Replaced flutter framework dependencies to Dart only dependency.
- isExpired() and getExpirationDate() the expiration time is converted to int
- getExpirationDate() returns the expiration date of the token
- getTokenTime() you can use this method to know how old your token is
- License was added
- An example file was added
- decode method will decode your token's payload and return a Map<String, dynamic>
- isExpired method is used to know if a token is already expired or not