import { Feed } from "../feed/feed" ; import { LoginResponse } from "../http/messages" ; import { Query } from "../query/query" ; import { FactEnvelope , FactRecord , FactReference } from "../storage" ; import { Authentication } from "./authentication" ; export class AuthenticationNoOp implements Authentication { constructor ( private inner ) { } login ( ) { throw new Error ( 'No logged in user.' ) ; } local ( ) { throw new Error ( 'No persistent device.' ) ; } from ( fact , query ) { return this . inner . from ( fact , query ) ; } async save ( envelopes ) { const saved = await this . inner . save ( envelopes ) ; return saved ; } query ( start , query ) { return this . inner . query ( start , query ) ; } exists ( fact ) { return this . inner . exists ( fact ) ; } load ( references ) { return this . inner . load ( references ) ; } }