From 3bdecfc1b9618cbc9e8f9635a14d46ea0d3925d6 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Mon, 7 Jul 2025 03:59:06 +0800 Subject: [PATCH] Update auth.ts --- src/client/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/auth.ts b/src/client/auth.ts index 495f62a4..eb3473ad 100644 --- a/src/client/auth.ts +++ b/src/client/auth.ts @@ -263,8 +263,8 @@ export async function discoverOAuthProtectedResourceMetadata( } else { const issuer = new URL(serverUrl); const wellKnownPath = buildWellKnownPath('oauth-protected-resource', issuer.pathname); - wellKnownPath.search = issuer.search; url = new URL(wellKnownPath, issuer); + url.search = issuer.search; } let response: Response;