mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-08 22:21:38 +00:00
refac
This commit is contained in:
parent
bd3a3635ee
commit
be38ca8e81
1 changed files with 8 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue