JWT class
Properties
-
audience
↔ Audience?
-
Audience claim
getter/setter pair
-
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 exceptions.
-
tryVerify(String token, JWTKey key, {bool checkExpiresIn = true, bool checkNotBefore = true, Duration? issueAt, Audience? audience, String? subject, String? issuer, String? jwtId})
→ JWT?
-
Exactly like
verify
, just return null instead of throwing exceptions.
-
verify(String token, JWTKey key, {bool checkExpiresIn = true, bool checkNotBefore = true, Duration? issueAt, Audience? audience, String? subject, String? issuer, String? jwtId})
→ JWT
-
Verify a token.