shreyask commited on
Commit
7edbb35
·
verified ·
1 Parent(s): 53bb408

Update src/services/oauth.ts

Browse files
Files changed (1) hide show
  1. src/services/oauth.ts +2 -2
src/services/oauth.ts CHANGED
@@ -63,7 +63,7 @@ export async function discoverOAuthEndpoints(serverUrl: string) {
63
  redirect_uris: [
64
  String(
65
  authMetadata.redirect_uri ||
66
- window.location.origin + "/oauth/callback"
67
  ),
68
  ],
69
  client_name: MCP_CLIENT_CONFIG.NAME,
@@ -121,7 +121,7 @@ export async function discoverOAuthEndpoints(serverUrl: string) {
121
  clientSecret: authMetadata.client_secret,
122
  scopes: authMetadata.scopes || [],
123
  redirectUri:
124
- authMetadata.redirect_uri || window.location.origin + "/oauth/callback",
125
  resource,
126
  };
127
  }
 
63
  redirect_uris: [
64
  String(
65
  authMetadata.redirect_uri ||
66
+ window.location.origin + "/#/oauth/callback"
67
  ),
68
  ],
69
  client_name: MCP_CLIENT_CONFIG.NAME,
 
121
  clientSecret: authMetadata.client_secret,
122
  scopes: authMetadata.scopes || [],
123
  redirectUri:
124
+ authMetadata.redirect_uri || window.location.origin + "/#/oauth/callback",
125
  resource,
126
  };
127
  }