aimpress-chatbot/node_modules/@azure/msal-browser/dist/cache/LocalStorage.d.ts
“SamoilenkoVadym” 55445dbc86
Some checks failed
Build and deploy Node.js app to Azure Web App - ChatBot2222 / build (push) Has been cancelled
Build and deploy Node.js app to Azure Web App - ChatBot2222 / deploy (push) Has been cancelled
Deploy bot to Azure
2025-04-27 19:55:19 +01:00

49 lines
No EOL
1.7 KiB
TypeScript

import { IPerformanceClient, Logger } from "@azure/msal-common/browser";
import { IWindowStorage } from "./IWindowStorage.js";
export declare class LocalStorage implements IWindowStorage<string> {
private clientId;
private initialized;
private memoryStorage;
private performanceClient;
private logger;
private encryptionCookie?;
private broadcast;
constructor(clientId: string, logger: Logger, performanceClient: IPerformanceClient);
initialize(correlationId: string): Promise<void>;
getItem(key: string): string | null;
getUserData(key: string): string | null;
setItem(key: string, value: string): void;
setUserData(key: string, value: string, correlationId: string): Promise<void>;
removeItem(key: string): void;
getKeys(): string[];
containsKey(key: string): boolean;
/**
* Removes all known MSAL keys from the cache
*/
clear(): void;
/**
* Helper to decrypt all known MSAL keys in localStorage and save them to inMemory storage
* @returns
*/
private importExistingCache;
/**
* Helper to decrypt and save cache entries
* @param key
* @returns
*/
private getItemFromEncryptedCache;
/**
* Helper to decrypt and save an array of cache keys
* @param arr
* @returns Array of keys successfully imported
*/
private importArray;
/**
* Gets encryption context for a given cache entry. This is clientId for app specific entries, empty string for shared entries
* @param key
* @returns
*/
private getContext;
private updateCache;
}
//# sourceMappingURL=LocalStorage.d.ts.map