GitHub

DaffInMemoryBackendAuthService

import { DaffInMemoryBackendAuthService } from '@daffodil/auth/driver/in-memory'

@Injectable()
class DaffInMemoryBackendAuthService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
  readonly collectionName: "auth" = DAFF_AUTH_IN_MEMORY_COLLECTION_NAME
  customers: Record<string, DaffInMemoryDbCustomer> = {}

  createDb(): { auth: Record<string, DaffInMemoryDbCustomer>; }
  post(reqInfo): any
}

Properties

collectionName
"auth"
DefaultDAFF_AUTH_IN_MEMORY_COLLECTION_NAME
Description

The collection name of the backend service where the backend only serves one collection. Used for routing requests to the correct backend.

customers
Record<string, DaffInMemoryDbCustomer>
Default{}
Description

() Methods

createDb
{ auth: Record<string, DaffInMemoryDbCustomer>; }
post
any
Parameters
ParameterreqInfo: undefined
Description