JwtDecoder class

Constructors

JwtDecoder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decode(String token) Map<String, dynamic>?
getExpirationDate(String token) DateTime
Returns token expiration date
getRemainingTime(String token) Duration
Returns remaining time until expiry date.
getTokenTime(String token) Duration
Returns token issuing date (iat)
isExpired(String token) bool
Returns true if the token is valid, false if it is expired.
tryDecode(String token) Map<String, dynamic>?
Returns null if the token is not valid