Skip to content

Commit 3bdecfc

Browse files
authored
Update auth.ts
1 parent 7b02c5c commit 3bdecfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ export async function discoverOAuthProtectedResourceMetadata(
263263
} else {
264264
const issuer = new URL(serverUrl);
265265
const wellKnownPath = buildWellKnownPath('oauth-protected-resource', issuer.pathname);
266-
wellKnownPath.search = issuer.search;
267266
url = new URL(wellKnownPath, issuer);
267+
url.search = issuer.search;
268268
}
269269

270270
let response: Response;

0 commit comments

Comments
 (0)