interface SessionDataStore {
    delete(id: string): Promise<void>;
    deleteByLogoutToken(logoutToken: LogoutToken): Promise<void>;
    get(id: string): Promise<null | SessionData>;
    set(id: string, session: SessionData): Promise<void>;
}

Methods

  • Destroys the session with the given session ID.

    Parameters

    • id: string

    Returns Promise<void>

  • Deletes the session with the given logout token which may contain a session ID or a user ID, or both.

    Parameters

    Returns Promise<void>