Skip to content

Commit 7ea0a4e

Browse files
Update README.md
1 parent cf3ad0c commit 7ea0a4e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/mcp-express/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const app = express();
4545
// Initialize McpAuthServer with baseUrl
4646
const mcpAuthServer = new McpAuthServer({
4747
baseUrl: process.env.BASE_URL as string,
48+
issuer: process.env.ISSUER as string
4849
});
4950

5051
app.use(express.json());
@@ -65,7 +66,10 @@ Creates a new instance of the MCP authentication server with the given configura
6566
```typescript
6667
import {McpAuthServer} from '@asgardeo/mcp-express';
6768

68-
const mcpAuthServer = new McpAuthServer({baseUrl: 'https://auth.example.com'});
69+
const mcpAuthServer = new McpAuthServer({
70+
baseUrl: 'https://auth.example.com',
71+
issuer: 'https://auth.example.com/oauth2/token'
72+
});
6973
```
7074

7175
#### mcpAuthServer.router()
@@ -95,6 +99,8 @@ The server can be configured with the following option:
9599
interface McpAuthServerOptions {
96100
/** Base URL of the authorization server */
97101
baseUrl: string;
102+
/** Issuer of the authorization server */
103+
issuer: string;
98104
}
99105
```
100106

@@ -119,6 +125,7 @@ const app: Express = express();
119125
// Initialize McpAuthServer
120126
const mcpAuthServer = new McpAuthServer({
121127
baseUrl: process.env.BASE_URL as string,
128+
issuer: process.env.ISSUER as string,
122129
});
123130

124131
app.use(express.json());

0 commit comments

Comments
 (0)