UNPKG

@koalarx/ui

Version:

Koala UI is a Design System developed in Angular whose objective is to facilitate and make your development faster and simpler, making this framework your greatest ally.

27 lines (26 loc) 874 B
import { OnDestroy } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; import * as i0 from "@angular/core"; export interface KoalaOAuth2TokenInterface { accessToken: string; idToken: string; refreshToken: string; login: string; expired: number; code: string; } export declare class KoalaTokenService implements OnDestroy { private token$; private intervalToken; private intervalFixMatFormField; constructor(); ngOnDestroy(): void; setToken(token: string): void; getToken(): BehaviorSubject<string>; getDecodedToken<T>(): T | null; getOAuth2Token(): KoalaOAuth2TokenInterface | null; removeToken(): void; private verifySession; static ɵfac: i0.ɵɵFactoryDeclaration<KoalaTokenService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<KoalaTokenService>; }