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