@nibssplc/cams-sdk
Version:
Central Authentication Management Service (CAMS) SDK for popup-based authentication with Azure AD + custom 2FA
12 lines (11 loc) • 331 B
TypeScript
export declare class TokenManager {
private readonly storage;
private token;
private readonly storageKey;
constructor(storage?: Storage, storageKey?: string);
setToken(token: string): void;
loadToken(): string | null;
clearToken(): void;
getAccessToken(): string | null;
isExpired(): boolean;
}