src/lib/disabled-authentication.service.ts
Properties |
|
Methods |
|
| Async isAuthenticated |
isAuthenticated()
|
|
Returns :
unknown
|
| Async signOut |
signOut()
|
|
Returns :
any
|
| 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;
}
}