@@ -45,6 +45,7 @@ const app = express();
4545//  Initialize McpAuthServer with baseUrl
4646const =  new  McpAuthServer ({
4747  baseUrl: process .env .BASE_URL  as  string ,
48+   issuer: process .env .ISSUER  as  string 
4849});
4950
5051app .use (express .json ());
@@ -65,7 +66,10 @@ Creates a new instance of the MCP authentication server with the given configura
6566``` typescript 
6667import  {McpAuthServer } from  ' @asgardeo/mcp-express' 
6768
68- const =  new  McpAuthServer ({baseUrl: ' https://auth.example.com' 
69+ const =  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:
9599interface  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
120126const =  new  McpAuthServer ({
121127  baseUrl: process .env .BASE_URL  as  string ,
128+   issuer: process .env .ISSUER  as  string ,
122129});
123130
124131app .use (express .json ());
0 commit comments