Compute auth token in Node

This commit is contained in:
Florian Rappl
2026-03-03 23:54:14 +01:00
parent cf5938450f
commit 14ecbb65a3
8 changed files with 47 additions and 66 deletions

View File

@@ -58,8 +58,9 @@
private void ElectronProcess_Ready(object sender, EventArgs e)
{
var port = ElectronNetRuntime.ElectronSocketPort.Value;
var token = ElectronNetRuntime.ElectronAuthToken;
this.TransitionState(LifetimeState.Started);
this.socketBridge = new SocketBridgeService(port, "");
this.socketBridge = new SocketBridgeService(port, token);
this.socketBridge.Ready += this.SocketBridge_Ready;
this.socketBridge.Stopped += this.SocketBridge_Stopped;
this.socketBridge.Start();