AuthSession class

Inheritance

Constructors

AuthSession({required String email})
AuthSession.fromJson(Map<String, dynamic> json)

Properties

getter/setter pair
createdAt DateTime?
Creation timestamp (UTC).
getter/setter pairinherited
disk Disk
getter/setter pairinherited
email String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int?
Primary key (auto-incremented by backend).
getter/setter pairinherited
lastActivity DateTime
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
getter/setter pair
updatedAt DateTime?
Last update timestamp (UTC).
getter/setter pairinherited
uuid String?
UUID for cross-backend identification.
getter/setter pairinherited

Methods

delete({Disk? disk}) Future<bool>
Deletes the current instance.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save({Disk? disk}) Future<bool>
Saves the current instance.
override
toJson() Map<String, dynamic>
Serializes model data (excluding metadata).
override
toMetaJson() Map<String, dynamic>
Serializes metadata fields (id, uuid, timestamps).
override
toString() String
Human-readable string representation.
inherited
update({Disk? disk}) Future<bool>
Updates the current instance with new data.
override

Operators

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

Static Properties

columnDefinitions Map<String, String>
getter/setter pair

Static Methods

check(HttpRequest request) Future<bool>
login({required String email, required String password}) Future<bool>
logout(HttpRequest request) Future<bool>
middleware(HttpRequest request, void next()) Future
user(HttpRequest request) Future<User?>