UNPKG

@c8y/ngx-components

Version:

Angular modules for Cumulocity IoT applications

28 lines 1.26 kB
import { OnInit, EventEmitter } from '@angular/core'; import { ICredentials, UserService } from '@c8y/client'; import { AlertService } from '../alert/alert.service'; import { LoginService } from './login.service'; import { LoginViews } from './login.model'; import * as i0 from "@angular/core"; export declare class TotpAuthComponent implements OnInit { loginService: LoginService; private userService; private alert; credentials: ICredentials; view: LoginViews; onCancel: EventEmitter<any>; LOGIN_VIEWS: typeof LoginViews; loading: boolean; hasError: boolean; isSetup: boolean; constructor(loginService: LoginService, userService: UserService, alert: AlertService); /** * In case of a setup we need the user to be authorized * first. */ ngOnInit(): Promise<void>; onTotpSuccess(code: any): Promise<void>; static ɵfac: i0.ɵɵFactoryDeclaration<TotpAuthComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TotpAuthComponent, "c8y-totp-auth", never, { "credentials": { "alias": "credentials"; "required": false; }; "view": { "alias": "view"; "required": false; }; }, { "onCancel": "onCancel"; }, never, never, false, never>; } //# sourceMappingURL=totp-auth.component.d.ts.map