diff --git a/src/AuthenticationRequest.js b/src/AuthenticationRequest.js index ddac444..de1913d 100644 --- a/src/AuthenticationRequest.js +++ b/src/AuthenticationRequest.js @@ -5,7 +5,6 @@ const assert = require('assert') const base64url = require('base64url') const crypto = require('@trust/webcrypto') const { JWT } = require('@solid/jose') -const FormUrlEncoded = require('./FormUrlEncoded') const { URL } = require('whatwg-url') /** @@ -117,7 +116,9 @@ class AuthenticationRequest { // render the request URI and terminate the algorithm .then(() => { let url = new URL(endpoint) - url.search = FormUrlEncoded.encode(params) + + // combine with any exists query parameters. + Object.entries(params).map(param => url.searchParams.append(param[0], param[1])) return url.href })