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 222b1d7 commit 096320eCopy full SHA for 096320e
exercises/04.user/01.problem.token/src/auth.ts
@@ -1,7 +1,9 @@
1
-import { type AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js'
+import { type AuthInfo as SDKAuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js'
2
import { z } from 'zod'
3
import { EPIC_ME_AUTH_SERVER_URL } from './client.ts'
4
5
+export type AuthInfo = SDKAuthInfo & { extra: { userId: string } }
6
+
7
const introspectResponseSchema = z.discriminatedUnion('active', [
8
z.object({
9
active: z.literal(true),
0 commit comments