Skip to content

Commit e782784

Browse files
committed
Export AuthInfo for convenience
1 parent a0f896f commit e782784

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
export { default as createMcpHandler } from "./next";
33

44
export { withMcpAuth as experimental_withMcpAuth } from "./next/auth-wrapper";
5+
export type { AuthInfo } from "./next/auth-wrapper";

src/next/auth-wrapper.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { InvalidTokenError, InsufficientScopeError, ServerError } from '@modelcontextprotocol/sdk/server/auth/errors';
22
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types';
33

4+
// Re-export AuthInfo type for convenience
5+
export type { AuthInfo };
6+
47
// Extend the Request type to include auth info
58
declare global {
69
interface Request {

0 commit comments

Comments
 (0)