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

Method loadUser

lib/models/authenticator.mjs:152–160  ·  view source on GitHub ↗
(webId)

Source from the content-addressed store, hash-verified

150 }
151
152 loadUser (webId) {
153 const serverUri = this.accountManager.host.serverUri
154 if (domainMatches(serverUri, webId)) {
155 return this.accountManager.userAccountFrom({ webId })
156 } else {
157 debug(`WebID URI ${JSON.stringify(webId)} is not a local account, using it as an external WebID`)
158 return this.accountManager.userAccountFrom({ webId, username: webId, externalWebId: true })
159 }
160 }
161}

Calls 1

userAccountFromMethod · 0.80

Tested by

no test coverage detected