DSSessionManager class

Manages user sessions for the Firebase provider

Constructors

DSSessionManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cleanupExpiredSessions() Future<void>
Cleanup expired sessions
clearSessions() Future<void>
Clears all sessions
createSession({required String userId, required String deviceId, Duration maxAge = const Duration(hours: 24)}) Future<DSSession>
Creates a new session
extendSession(String userId, {Duration? additionalTime}) Future<DSSession>
Extends session duration
getActiveSessions() List<DSSession>
Gets all active sessions for monitoring
getSession(String userId) Future<DSSession?>
Gets an active session
getSessionAnalytics() Map<String, dynamic>
Gets session analytics
getSessionCount(String userId) int
Gets session count for a user
isValidSession(String userId, String deviceId) Future<bool>
Validates session by device ID
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshSession(String userId, {Duration? newDuration}) Future<DSSession>
Refreshes an existing session
removeSession(String userId) Future<void>
Removes a specific session
toString() String
A string representation of this object.
inherited

Operators

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