getActiveSession method
Retrieves the currently active session, or null if no valid session exists.
Implementation
Future<AuthUserSession?> getActiveSession() async {
try {
var session = _localSessionRepository.activeSession;
if (session == null) {
return null;
}
await validateSession(session);
return session;
} catch (e) {
logger.error(this, 'Error retrieving active session: $e', error: e);
return null;
}
}