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