MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / getAccountManager

Function getAccountManager

bin/lib/cli-utils.mjs:8–16  ·  view source on GitHub ↗
(config, options = {})

Source from the content-addressed store, hash-verified

6import SolidHost from '../../lib/models/solid-host.mjs'
7
8export function getAccountManager (config, options = {}) {
9 const ldp = options.ldp || new LDP(config)
10 const host = options.host || SolidHost.from({ port: config.port, serverUri: config.serverUri })
11 return AccountManager.from({
12 host,
13 store: ldp,
14 multiuser: config.multiuser
15 })
16}
17
18export function loadConfig (program, options) {
19 let argv = {

Callers 1

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected