import { Injectable } from '@angular/core' ; import { BehaviorSubject } from 'rxjs' ; /**
 * Can be subscribed to to act upon success state of the MFA modal.
 */ @ Injectable ( { providedIn : 'root' } ) export class MultiFactorAuthConfirmationService { public readonly success$ : BehaviorSubject < boolean > = new BehaviorSubject < boolean > ( false ) ; returns { MultiFactorAuthConfirmationService } public reset ( ) { this . success$ . next ( false ) ; return this ; } }