JWT class

Inheritance

Constructors

JWT(String token, {String prefix = 'Bearer '})
JWT.create(Map<String, dynamic> header, Map<String, dynamic> payload, RSAPrivateKey key)
factory

Properties

alg String?
no setter
aud String?
no setter
authorization String
no setterinherited
exp DateTime?
no setter
hashCode int
The hash code for this object.
no setterinherited
final
iat DateTime?
no setter
iss String?
no setter
kid String?
no setter
payload Map<String, dynamic>
final
prefix String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signature Uint8List
final
sub String?
no setter
token String
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
verify({String? issuer, String? audience, RSAPublicKey? publicKey}) Future<void>
Verify a signed JWT.

Operators

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

Static Methods

fromAuthorizationHeader(String token, {String prefix = 'Bearer '}) JWT?
override
fromRequest(ApiRequest request, {String prefix = 'Bearer '}) JWT?
override