RefreshToken class abstract

Refresh token for JWT-based authentication.

Constructors

RefreshToken({UuidValue? id, required UuidValue authUserId, AuthUser? authUser, required Set<String> scopeNames, String? extraClaims, required String method, required ByteData fixedSecret, required String rotatingSecretHash, DateTime? lastUpdatedAt, DateTime? createdAt})
factory
RefreshToken.fromJson(Map<String, dynamic> jsonSerialization)
factory

Properties

authUser AuthUser?
The AuthUser this refresh token belongs to.
getter/setter pair
authUserId ↔ UuidValue
getter/setter pair
createdAt DateTime
The time when the first refresh token was created.
getter/setter pair
extraClaims String?
Extra claims to be added to each access token created for this refresh token.
getter/setter pair
fixedSecret ByteData
The fixed part of the secret.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id ↔ UuidValue?
The id column of the row. Can be null if this row is not yet stored in the database.
getter/setter pair
lastUpdatedAt DateTime
The time when the rotatingSecretHash was last updated.
getter/setter pair
method String
The method through which this token was created.
getter/setter pair
rotatingSecretHash String
The most recent rotating secret associated with this refresh token.
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
table → Table<UuidValue?>
The table that this row belongs to.
no setter

Methods

copyWith({UuidValue? id, UuidValue? authUserId, AuthUser? authUser, Set<String>? scopeNames, String? extraClaims, String? method, ByteData? fixedSecret, String? rotatingSecretHash, DateTime? lastUpdatedAt, DateTime? createdAt}) RefreshToken
Returns a shallow copy of this RefreshToken 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

Static Properties

t RefreshTokenTable
final

Static Methods

include({AuthUserInclude? authUser}) RefreshTokenInclude
includeList({WhereExpressionBuilder<RefreshTokenTable>? where, int? limit, int? offset, OrderByBuilder<RefreshTokenTable>? orderBy, bool orderDescending = false, OrderByListBuilder<RefreshTokenTable>? orderByList, RefreshTokenInclude? include}) RefreshTokenIncludeList

Constants

db → const RefreshTokenRepository