express-openid-connect
    Preparing search index...

    Interface SessionStore<Data>

    interface SessionStore<Data = Session> {
        destroy(sid: string, callback?: (err?: any) => void): void;
        get(
            sid: string,
            callback: (err: any, session?: SessionStorePayload<Data>) => void,
        ): void;
        set(
            sid: string,
            session: SessionStorePayload<Data>,
            callback?: (err?: any) => void,
        ): void;
        [key: string]: any;
    }

    Type Parameters

    Indexable

    • [key: string]: any
    Index

    Methods

    Methods

    • Destroys the session with the given session ID.

      Parameters

      • sid: string
      • Optionalcallback: (err?: any) => void

      Returns void

    • Gets the session from the store given a session ID and passes it to callback.

      Parameters

      Returns void

    • Upsert a session in the store given a session ID and SessionData

      Parameters

      Returns void