Use auth token when connecting to existing server from Electron

Summary:
All clients need to provide an authentication token before connecting. Electron app is no different.

This change adds the authentication token whether we are connecting over UDS or TCP.

Before this change, if Flipper server was already running, launching the Electron app would look similar to this:

{F1016961594}

Reviewed By: antonk52

Differential Revision: D46418758

fbshipit-source-id: f00ffe675df78403d5921250e3e9ed9331a55bde
This commit is contained in:
Lorenzo Blasa
2023-06-05 05:26:10 -07:00
committed by Facebook GitHub Bot
parent 90240f4186
commit 98f376ec69
3 changed files with 75 additions and 47 deletions

View File

@@ -22,4 +22,4 @@ export {isFBBuild} from './fb-stubs/constants';
export {WEBSOCKET_MAX_MESSAGE_SIZE} from './comms/ServerWebSocket';
export {getAuthToken} from './utils/certificateUtils';
export {getAuthToken, hasAuthToken} from './utils/certificateUtils';