import { HttpClient } from '@angular/common/http' ; import { Injectable } from '@angular/core' ; import { Observable } from 'rxjs' ; import { mapTo } from 'rxjs/operators' ; import { DaffAuthServiceInterface } from '@daffodil/auth/driver' ; inheritdoc @ Injectable ( { providedIn : 'root' , } ) export class DaffInMemoryAuthService implements DaffAuthServiceInterface { url = '/api/auth/' ; constructor ( private http ) { } check ( ) { return this . http . post ( `${ this . url }check` , { } ) . pipe ( mapTo ( undefined ) ) ; } }