AuthClientSession class

A server-side session returned by the session-management API.

Constructors

AuthClientSession({required String id, required String userId, required DateTime createdAt, required DateTime expiresAt, required DateTime lastUsedAt, required String authenticationMethod, required bool isCurrent, required bool active, DateTime? revokedAt, String? ipAddress, String? userAgent})
Creates server-side session metadata.
const
AuthClientSession.fromJson(Map<String, dynamic> json)
Decodes session metadata from a JSON object.
factory

Properties

active → bool
Whether the server considers the session active.
final
authenticationMethod → String
Authentication method that created the session.
final
createdAt → DateTime
Time at which the session was created.
final
expiresAt → DateTime
Time at which the session expires.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Public session identifier.
final
ipAddress → String?
IP address recorded for the session, when available.
final
isCurrent → bool
Whether this is the session represented by the current client cookie.
final
lastUsedAt → DateTime
Time at which the session was most recently used.
final
revokedAt → DateTime?
Time at which the session was revoked, if it was revoked.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userAgent → String?
User agent recorded for the session, when available.
final
userId → String
Identifier of the user who owns the session.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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