@lfai/egeria-js-commons
Version:
Common module for storing static data such as key value objects, SVGs, icon mappings, API urls.
16 lines (15 loc) • 411 B
TypeScript
export interface JWTInterface {
sub: string;
scope: string[];
iss: string;
visibleComponents: string[];
exp: number;
iat: number;
}
export declare const parseJwt: (token: string | null) => JWTInterface | null;
export declare const token: {
setValue: (value: string) => void;
getValue: () => string | null;
delete: () => void;
decodedObject: () => JWTInterface | null;
};