UNPKG

coersystem

Version:

Library for Angular projects

14 lines (13 loc) 584 B
import { IUserLoginResponse } from "coersystem/interfaces"; /** Controls user information in localStorage */ export declare class User { private static readonly storage; /** Save the user to localStorage */ static Set(user: IUserLoginResponse): void; /** Get the user from localStorage */ static Get(): IUserLoginResponse | null; /** Validates if the user and the jwt exist in the localStorage */ static IsLogIn(): boolean; /** Removes data from localStorage and sessionStorage, except for the user and navigate to root */ static LogOut(): void; }