Commit ffc15f06 authored by Merzough Münker's avatar Merzough Münker
Browse files

fix(IAuthenticationService): set isAuthenticated$ as Observable

parent 0a485db6
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -3,7 +3,10 @@ import {
  Inject,
  Optional
} from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import {
  BehaviorSubject,
  Observable
} from 'rxjs';
import { Router } from '@angular/router';
import { tap } from 'rxjs/operators';
import { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';
@@ -11,7 +14,7 @@ import { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';
export const RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY = 'rxap__authenticated';

export interface IAuthenticationService {
  isAuthenticated$: BehaviorSubject<boolean | null>;
  isAuthenticated$: Observable<boolean | null>;

  requestPasswordReset(email: string): Promise<boolean>;