diff --git a/lib/tunnelbroker/tunnelbroker-context.js b/lib/tunnelbroker/tunnelbroker-context.js --- a/lib/tunnelbroker/tunnelbroker-context.js +++ b/lib/tunnelbroker/tunnelbroker-context.js @@ -48,6 +48,7 @@ +addListener: (listener: TunnelbrokerSocketListener) => void, +removeListener: (listener: TunnelbrokerSocketListener) => void, +connected: boolean, + +isAuthorized: boolean, +setUnauthorizedDeviceID: (unauthorizedDeviceID: ?string) => void, }; @@ -376,11 +377,12 @@ () => ({ sendMessage, connected, + isAuthorized, addListener, removeListener, setUnauthorizedDeviceID, }), - [addListener, connected, removeListener, sendMessage], + [addListener, connected, removeListener, sendMessage, isAuthorized], ); return (