refac
This commit is contained in:
1 parent
21366fa1b1
commit
5ce198b1d7
2 files changed
+1
-26
No files matched your search
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user