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

Function attachQueryParams

lib/requests/auth-request.mjs:6–12  ·  view source on GitHub ↗
(urlObj, params)

Source from the content-addressed store, hash-verified

4
5// Helper: attach key/value pairs from `params` into URLSearchParams of `urlObj`
6function attachQueryParams (urlObj, params) {
7 if (!params) return urlObj
8 for (const [k, v] of Object.entries(params)) {
9 if (v != null) urlObj.searchParams.set(k, v)
10 }
11 return urlObj
12}
13
14// Avoid importing `@solid/oidc-op` at module-evaluation time to prevent
15// import errors in environments where that package isn't resolvable.

Callers 4

authorizeUrlMethod · 0.85
registerUrlMethod · 0.85
loginUrlMethod · 0.85
sharingUrlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected