MonoCloud Authentication SDK
    Preparing search index...

    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.

    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

    • Removes a session from the store.

      Parameters

      • key: string

        Unique identifier of the session to delete.

      Returns Promise<void>