/** * This class is used to record invalid session IDs to avoid using them in future requests. * * A static array is used to manage invalid session IDs. These session IDs are backed up to local storage * and updated when new ones are found. * * The maximum number of bad session IDs is configurable and currently set to 5. We limit this field to * keep storage use to a minimum. * * @internal */ export declare class MsalSessionIdManager { private static _invalidSessionIds; private static readonly _INVALID_SID_SS_KEY; private static readonly _MAX_SIDS; /** * Initializes the MsalSessionIdManager by loading state from storage. This should be called before * attempting to perform any other methods. */ static initialize(): void; /** * Given a session ID, determines if the session ID is known to be invalid. * @param sessionId - Session ID to search for. * @returns True if the session ID is invalid. */ static isSessionIdInvalid(sessionId: string): boolean; /** * Given a session ID, adds it to the list of invalid session IDs. Ignores IDs that are already invalid. * @param sessionId - Session ID to mark as invalid. */ static addInvalidSessionId(sessionId: string): void; /** * Saves the current list of invalid session IDs to local storage. * Does not write to storage if there are no known invalid session IDs. */ static saveInvalidSessionIdsToStorage(): void; /** * Loads and returns the list of known invalid session IDs from local storage. * If there is nothing in storage then it will a new array. * * If the JSON from local storage is not valid it will return an empty new array. * @returns */ private static _loadInvalidSessionIdsFromStorage; } //# sourceMappingURL=MsalSessionIdManager.d.ts.map