JWT class

A JSON Web Token class.

The industry standard method for representing claims securely between two parties.

Constructors

JWT.decode(String token)
Decodes a JSON Web Token string.

Properties

expirationDate DateTime?
Returns the token expiration date.
no setter
hashCode int
The hash code for this object.
no setterinherited
isExpired bool
Whether the token has expired or not.
no setter
issuedAt DateTime?
Returns the token issuing date.
no setter
payload Map<String, dynamic>
Returns the token payload.
no setter
remainingTime Duration?
Returns the remaining time until expiry date.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
The encoded JSON Web Token string.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
willExpired(Duration duration) bool
Whether the token will expired within the given duration.

Operators

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