getSession

open suspend override fun getSession(): StoredSession?

Retrieves the current session from encrypted storage.

Returns null if no session exists, if the session data is corrupted, or if the session has expired. Expired sessions are automatically cleared from storage.

Return

The current session, or null if not found, corrupted, or expired

Throws

if the read operation fails due to a storage error