File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ import { ZodRawShape } from "zod";
7
7
import { AUTH0_AUDIENCE , AUTH0_DOMAIN } from "./config" ;
8
8
import { Auth } from "./types" ;
9
9
10
- interface Auth0McpInstance {
10
+ interface Auth0Mcp {
11
11
verifyToken : ReturnType < typeof createTokenVerifier > ;
12
12
requireScopes : ReturnType < typeof createScopeValidator > ;
13
13
}
14
14
15
15
const auth0Mcp = createAuth0Mcp ( ) ;
16
16
export default auth0Mcp ;
17
17
18
- export function createAuth0Mcp ( ) : Auth0McpInstance {
18
+ export function createAuth0Mcp ( ) : Auth0Mcp {
19
19
const verifyToken = createTokenVerifier ( ) ;
20
20
const requireScopes = createScopeValidator ( ) ;
21
21
return {
@@ -115,7 +115,7 @@ function createScopeValidator() {
115
115
context = args as Parameters < ToolCallback < T > > [ 1 ] ;
116
116
}
117
117
118
- if ( ! context ? .authInfo ) {
118
+ if ( ! context . authInfo ) {
119
119
throw new Error ( "Authentication info is required to execute this tool" ) ;
120
120
}
121
121
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ export const AUTH0_AUDIENCE =
9
9
* Configure appropriately for production
10
10
*/
11
11
export const corsHeaders = {
12
- "Access-Control-Allow-Origin" : "*" ,
12
+ "Access-Control-Allow-Origin" : "*" , // Adjust as needed for production
13
13
"Access-Control-Allow-Methods" : "GET, OPTIONS"
14
14
} ;
You can’t perform that action at this time.
0 commit comments