(accountName)
| 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 |
no outgoing calls
no test coverage detected