Skip to content

Commit 06e9dea

Browse files
committed
more cleanup
1 parent 96366f2 commit 06e9dea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/mcp/src/auth0.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import { ZodRawShape } from "zod";
77
import { AUTH0_AUDIENCE, AUTH0_DOMAIN } from "./config";
88
import { Auth } from "./types";
99

10-
interface Auth0McpInstance {
10+
interface Auth0Mcp {
1111
verifyToken: ReturnType<typeof createTokenVerifier>;
1212
requireScopes: ReturnType<typeof createScopeValidator>;
1313
}
1414

1515
const auth0Mcp = createAuth0Mcp();
1616
export default auth0Mcp;
1717

18-
export function createAuth0Mcp(): Auth0McpInstance {
18+
export function createAuth0Mcp(): Auth0Mcp {
1919
const verifyToken = createTokenVerifier();
2020
const requireScopes = createScopeValidator();
2121
return {
@@ -115,7 +115,7 @@ function createScopeValidator() {
115115
context = args as Parameters<ToolCallback<T>>[1];
116116
}
117117

118-
if (!context?.authInfo) {
118+
if (!context.authInfo) {
119119
throw new Error("Authentication info is required to execute this tool");
120120
}
121121

examples/mcp/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export const AUTH0_AUDIENCE =
99
* Configure appropriately for production
1010
*/
1111
export const corsHeaders = {
12-
"Access-Control-Allow-Origin": "*",
12+
"Access-Control-Allow-Origin": "*", // Adjust as needed for production
1313
"Access-Control-Allow-Methods": "GET, OPTIONS"
1414
};

0 commit comments

Comments
 (0)