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

Method authorizeUrl

lib/requests/auth-request.mjs:114–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 }
113
114 authorizeUrl () {
115 const host = this.accountManager.host
116 const authUrl = host.authEndpoint
117 // Build a WHATWG URL and attach query params
118 let theUrl
119 if (typeof authUrl === 'string') {
120 theUrl = new URL(authUrl)
121 } else if (authUrl && authUrl.pathname) {
122 theUrl = new URL(authUrl.pathname, this.accountManager.host.serverUri)
123 } else {
124 theUrl = new URL(this.accountManager.host.serverUri)
125 }
126 attachQueryParams(theUrl, this.authQueryParams)
127 return theUrl.toString()
128 }
129
130 registerUrl () {
131 const host = this.accountManager.host

Callers 2

postSharingUrlMethod · 0.80

Calls 1

attachQueryParamsFunction · 0.85

Tested by

no test coverage detected