mirror of
https://github.com/open-webui/open-webui.git
synced 2026-04-30 19:37:14 +02:00
refac
Co-Authored-By: Taylor Wilsdon <6508528+taylorwilsdon@users.noreply.github.com>
This commit is contained in:
@@ -339,6 +339,9 @@
|
||||
let parts = toolId.split(':');
|
||||
let serverId = parts?.at(-1) ?? toolId;
|
||||
|
||||
// Persist the tool ID so we can re-enable it after OAuth redirect
|
||||
sessionStorage.setItem('pendingOAuthToolId', toolId);
|
||||
|
||||
const authUrl = getOAuthClientAuthorizationUrl(serverId, 'mcp');
|
||||
window.open(authUrl, '_self', 'noopener');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user