@universis/common
Version:
Universis - common directives and services
41 lines (40 loc) • 1.94 kB
TypeScript
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
import { AngularDataContext } from '@themost/angular';
import { ActivatedUser } from '../../services/activated-user.service';
import { AuthenticationService } from '../../services/authentication.service';
import { Router } from '@angular/router';
import * as i0 from "@angular/core";
export declare class RefreshTokenComponent implements OnInit, OnDestroy {
private activatedUser;
private authService;
private context;
private userSubscription;
private refreshTimer;
private refreshErrors;
/**
* Gets or sets the validation interval. The default value is 60000 ms.
*/
timerInterval: number;
/**
* Sets the number of milliseconds -before expiration - for refreshing an access token.
* The default value is 60000 ms.
*/
refreshBefore: number;
constructor(activatedUser: ActivatedUser, authService: AuthenticationService, context: AngularDataContext);
ngOnDestroy(): void;
private resetTimer;
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<RefreshTokenComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<RefreshTokenComponent, "universis-refresh-token", never, { "timerInterval": "timerInterval"; "refreshBefore": "refreshBefore"; }, {}, never, never, false, never>;
}
export declare class RefreshTokenActionComponent implements AfterViewInit, OnDestroy {
private activatedUser;
private authService;
private context;
private router;
constructor(activatedUser: ActivatedUser, authService: AuthenticationService, context: AngularDataContext, router: Router);
ngOnDestroy(): void;
ngAfterViewInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<RefreshTokenActionComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<RefreshTokenActionComponent, "universis-refresh-token-action", never, {}, {}, never, never, false, never>;
}