MonoCloud Authentication SDK
    Preparing search index...

    Represents a session store interface for managing session data.

    interface MonoCloudSessionStore {
        delete(key: string): Promise<void>;
        get(key: string): Promise<MonoCloudSession | null | undefined>;
        set(
            key: string,
            data: MonoCloudSession,
            lifetime: SessionLifetime,
        ): Promise<void>;
    }
    Index

    Methods

    Methods

    • Deletes a session from the store based on the provided key.

      Parameters

      • key: string

        The key used to identify the session to be deleted.

      Returns Promise<void>

      A Promise that resolves when the session is successfully deleted.

    • Retrieves a session from the store based on the provided key.

      Parameters

      • key: string

        The key used to identify the session.

      Returns Promise<MonoCloudSession | null | undefined>

      A Promise that resolves with the session data, or undefined / null if not found.