refac
This commit is contained in:
@@ -982,6 +982,14 @@
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error refreshing backend config:', 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 {
|
} else {
|
||||||
// Redirect Invalid Session User to /auth Page
|
// Redirect Invalid Session User to /auth Page
|
||||||
localStorage.removeItem('token');
|
localStorage.removeItem('token');
|
||||||
|
|||||||
Reference in New Issue
Block a user