JwtTokenInfo class abstract

DTO for transferring JWT token information between server and client.

Available extensions

Constructors

JwtTokenInfo({required UuidValue id, required UuidValue authUserId, required Set<String> scopeNames, String? extraClaimsJSON, required DateTime lastUpdatedAt, required DateTime createdAt, required String method})
factory
JwtTokenInfo.fromJson(Map<String, dynamic> jsonSerialization)
factory

Properties

authUserId ↔ UuidValue
The AuthUser this refresh token belongs to.
getter/setter pair
createdAt DateTime
The time when this session was initially created.
getter/setter pair
extraClaims Map<String, dynamic>?

Available on JwtTokenInfo, provided by the JwtTokenInfoExtension extension

Returns the extra claims set on this authentication token.
no setter
extraClaimsJSON String?
Extra claims set on this session.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id ↔ UuidValue
getter/setter pair
lastUpdatedAt DateTime
The last time when a new token pair was created for this session.
getter/setter pair
method String
The method through which this token was created.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopeNames Set<String>
The scopes given to this session.
getter/setter pair
scopes Set<Scope>

Available on JwtTokenInfo, provided by the JwtTokenInfoExtension extension

Returns the Scopes for this authentication token.
no setter

Methods

copyWith({UuidValue? id, UuidValue? authUserId, Set<String>? scopeNames, String? extraClaimsJSON, DateTime? lastUpdatedAt, DateTime? createdAt, String? method}) JwtTokenInfo
Returns a shallow copy of this JwtTokenInfo with some or all fields replaced by the given arguments.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a serialized JSON structure of the model which also includes fields used by the database.
toJsonForProtocol() Map<String, dynamic>
Returns a JSON structure of the model, optimized for Protocol communication.
toString() String
A string representation of this object.
override

Operators

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