This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-25 14:20:28 -04:00
1 parent 21366fa1b1
commit 5ce198b1d7
2 files changed
+1 -26

No files matched your search

+1 -8
View File
@@ -572,15 +572,8 @@ export const initiateOAuthRedirect = (tool: {
}) => {
sessionStorage.setItem('pendingOAuthToolId', tool.id);
sessionStorage.setItem('oauthRedirectInProgressToolId', tool.id);
localStorage.setItem('pendingOAuthToolId', tool.id);
localStorage.setItem('oauthRedirectInProgressToolId', tool.id);
const authUrl = getOAuthClientAuthorizationUrl(tool.serverId, tool.authType ?? 'mcp');
const tab = window.open(authUrl, '_blank');
if (!tab) {
localStorage.removeItem('pendingOAuthToolId');
localStorage.removeItem('oauthRedirectInProgressToolId');
window.open(authUrl, '_self', 'noopener');
}
window.open(authUrl, '_self', 'noopener');
};
export const getCodeExecutionConfig = async (token: string) => {