Skip to content

Commit 13e2065

Browse files
committed
fix: export oauth resource indicator type
1 parent c92db32 commit 13e2065

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@modelcontextprotocol/client": patch
3+
---
4+
5+
fix(client): preserve OAuth resource metadata indicator

packages/client/src/client/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ function isClientAuthMethod(method: string): method is ClientAuthMethod {
384384

385385
const AUTHORIZATION_CODE_RESPONSE_TYPE = 'code';
386386
const AUTHORIZATION_CODE_CHALLENGE_METHOD = 'S256';
387-
type OAuthResourceIndicator = string | URL;
387+
export type OAuthResourceIndicator = string | URL;
388388

389389
function serializeResourceIndicator(resource: OAuthResourceIndicator): string {
390390
return typeof resource === 'string' ? resource : resource.href;

0 commit comments

Comments
 (0)