CToken class

Represents a class for handling JSON Web Tokens (JWT) using a JSON Web Key (JWK).

Constructors

CToken(String key)
Creates a new instance of CToken with the given key.

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

buildJWT(CTokenBody body) String
Builds a JWT with the given claims.
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 jwt) Future<bool>
Verifies the given JWT without decoding it.
verifyMore(String jwt, {String? user, String? clientId}) Future<bool>
Verifies the given JWT and validates its claims.

Operators

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