UNPKG

nd-common

Version:

14 lines (13 loc) 614 B
import { InjectionToken } from "@angular/core"; import { Observable } from "rxjs"; export interface ITokenController { /** The current access token.s */ token: string; /** Host service that the API should call. Example: "vault.netvoyage.com" */ host?: string; /** Flag that indicates if the api call should be via the https protocol. (Defauts to true) */ useHttps?: boolean; /** Function to be called when the access token has expired and/or does not exist. */ renew(): Observable<string>; } export declare const ND_TOKEN_CONTROLLER: InjectionToken<ITokenController>;