JWT class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
JWT header
getter/setter pair
-
issuer
↔ String?
-
Issuer claim
getter/setter pair
-
jwtId
↔ String?
-
JWT Id claim
getter/setter pair
-
payload
↔ dynamic
-
Custom claims
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
subject
↔ String?
-
Subject claim
getter/setter pair
Static Methods
-
decode(String token)
→ JWT
-
Decode a token without checking its signature
-
tryDecode(String token)
→ JWT?
-
Exactly like
decode
, just return null
instead of throwing errors.
-
tryVerify(String token, JWTKey key, {bool checkExpiresIn = true, bool checkNotBefore = true, Duration? issueAt, String? subject, String? issuer, String? jwtId})
→ JWT?
-
Exactly like
verify
, just return null instead of throwing errors.
-
verify(String token, JWTKey key, {bool checkExpiresIn = true, bool checkNotBefore = true, Duration? issueAt, String? subject, String? issuer, String? jwtId})
→ JWT
-
Verify Token