We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd3a363 commit be38ca8Copy full SHA for be38ca8
1 file changed
src/routes/+layout.svelte
@@ -982,6 +982,14 @@
982
} catch (error) {
983
console.error('Error refreshing backend config:', error);
984
}
985
+
986
+ // Relay auth token to desktop app for API access
987
+ if (window.electronAPI?.send) {
988
+ window.electronAPI.send({
989
+ type: 'token:update',
990
+ token: localStorage.token
991
+ }).catch(() => {});
992
+ }
993
} else {
994
// Redirect Invalid Session User to /auth Page
995
localStorage.removeItem('token');
0 commit comments