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

Method accountUriFor

lib/models/solid-host.mjs:21–29  ·  view source on GitHub ↗
(accountName)

Source from the content-addressed store, hash-verified

19 }
20
21 accountUriFor (accountName) {
22 if (!accountName) {
23 throw TypeError('Cannot construct uri for blank account name')
24 }
25 if (!this.parsedUri) {
26 throw TypeError('Cannot construct account, host not initialized with serverUri')
27 }
28 return this.parsedUri.protocol + '//' + accountName + '.' + this.host
29 }
30
31 allowsSessionFor (userId, origin, trustedOrigins) {
32 if (!userId || !origin) return true

Callers 4

sendEmailsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected