architect-sdk
Version:
Essentialz Architect SDK
15 lines (14 loc) • 489 B
TypeScript
import { Token, TokenManagerInterface } from './types';
export declare class TokenManager implements TokenManagerInterface {
private static instance;
private readonly tokenKey;
private readonly userIdKey;
private token;
private userId;
private constructor();
static getInstance(tokenKey: string, userIdKey: string): TokenManager;
setToken(token: Token): void;
getToken(): Token;
getUserId(): string | null;
setUserId(id: string | null): void;
}