We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f24b8b commit da6ac79Copy full SHA for da6ac79
src/client/auth.ts
@@ -297,6 +297,8 @@ export async function discoverOAuthMetadata(
297
authorizationServerUrl: string | URL,
298
opts?: { protocolVersion?: string },
299
): Promise<OAuthMetadata | undefined> {
300
+ const issuer = new URL(authorizationServerUrl);
301
+
302
const wellKnownPath = `/.well-known/oauth-authorization-server${issuer.pathname}`;
303
const url = new URL(wellKnownPath, authorizationServerUrl);
304
0 commit comments