Spaces:
Running
Running
Update src/services/oauth.ts
Browse files- 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 + "
|
| 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 + "
|
| 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 |
}
|