Skip to content

Commit da6ac79

Browse files
authored
Fix missing issuer
1 parent 4f24b8b commit da6ac79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ export async function discoverOAuthMetadata(
297297
authorizationServerUrl: string | URL,
298298
opts?: { protocolVersion?: string },
299299
): Promise<OAuthMetadata | undefined> {
300+
const issuer = new URL(authorizationServerUrl);
301+
300302
const wellKnownPath = `/.well-known/oauth-authorization-server${issuer.pathname}`;
301303
const url = new URL(wellKnownPath, authorizationServerUrl);
302304

0 commit comments

Comments
 (0)