Update auth.ts

This commit is contained in:
Henry Mao 2025-07-07 03:59:06 +08:00 • committed by GitHub
commit 3bdecfc1b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;