FakeSession class final

One login session with its tokens (08 7).

Constructors

FakeSession({required String id, required String userId, required String deviceId, required String authMethod, required String createdAt, required String expiresAt, required String jkt})
Creates a session.

Properties

accessToken ↔ String
The current access token.
getter/setter pair
authMethod → String
The Session.auth_method.
final
createdAt → String
When it started.
final
deviceId → String
The device.
final
expiresAt → String
When it ends.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The session ID (sid).
final
jkt → String
The thumbprint of the DPoP key of the family.
final
lastSeenAt ↔ String?
The time of the last authenticated request of the session.
getter/setter pair
olderAccessTokens → Set<String>
Earlier access tokens that are still valid until their expiry.
final
refreshToken ↔ String
The current refresh token.
getter/setter pair
revoked ↔ bool
Whether the session was revoked.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stepUpAt ↔ DateTime?
When the session last confirmed with its step-up key (08 6.2), or null.
getter/setter pair
userId → String
The person.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({bool? current}) → JsonMap
The API Session; current marks the session of the request.
toString() → String
A string representation of this object.
inherited

Operators

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