JWT class

Constructors

JWT()

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>
Decode a string JWT token into a Map<String, dynamic> containing the decoded JSON payload.
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 false if the token is valid, true if it is expired.
tryDecode(String token) Map<String, dynamic>?
Decode a string JWT token into a Map<String, dynamic> containing the decoded JSON payload.