mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-22 21:44:48 -06:00
refac
This commit is contained in:
@@ -982,6 +982,14 @@
|
||||
} catch (error) {
|
||||
console.error('Error refreshing backend config:', error);
|
||||
}
|
||||
|
||||
// Relay auth token to desktop app for API access
|
||||
if (window.electronAPI?.send) {
|
||||
window.electronAPI.send({
|
||||
type: 'token:update',
|
||||
token: localStorage.token
|
||||
}).catch(() => {});
|
||||
}
|
||||
} else {
|
||||
// Redirect Invalid Session User to /auth Page
|
||||
localStorage.removeItem('token');
|
||||
|
||||
Reference in New Issue
Block a user