Removes a session from the store.
Unique identifier of the session to delete.
Retrieves a session associated with the provided key.
Unique identifier of the session.
Returns the stored session, or undefined / null if no session exists.
Persists or updates a session.
The provided lifetime information can be used by the store to configure TTL/expiration policies.
Unique identifier of the session.
The session data to persist.
Session lifetime metadata (creation, update, expiration).
Defines a storage adapter used to persist authentication sessions.
Implement this interface to store sessions outside the default cookie-based storage — for example in Redis, a database, or a distributed cache.