Jwt class
JSON Web Token Handler
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
-
sign(
Map< String, dynamic> payload, String secret, {JWTAlgorithm algorithm = JWTAlgorithm.HS256, Duration? expiresIn, Duration? notBefore, bool noIssueAt = false, Audience? audience, String? subject, String? issuer, String? jwtId, Map<String, dynamic> ? header}) → String - Sign JSON Web Token
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
String token, String secret, [void done(dynamic error, Map< String, dynamic> ? data)?]) → Map<String, dynamic> ? - Verify JSON Web Token
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited