File

src/lib/disabled-authentication.service.ts

Index

Properties
Methods

Methods

Async isAuthenticated
isAuthenticated()
Returns : unknown
Async signOut
signOut()
Returns : any

Properties

Public Readonly events$
Default value : EMPTY
Public Readonly isAuthenticated$
Default value : of(true)
import { Injectable } from '@angular/core';
import {
  EMPTY,
  of,
} from 'rxjs';
import { IAuthenticationService } from './authentication.service';

@Injectable()
export class DisabledAuthenticationService implements IAuthenticationService {

  public readonly isAuthenticated$ = of(true);
  public readonly events$ = EMPTY;

  async signOut() {
    console.log('Authentication is disabled. No sign out possible');
  }

  async isAuthenticated() {
    return true;
  }

}

results matching ""

    No results matching ""