Expects the token to be passed via cookies by default.
Return false to prevent the protocol upgrade from going through, blocking the WebSocket connection.
The HTTP connection upgrade request received by the server.
ProtectedgetReturns the token to compare to when authorizing requests.
ProtectedinitValidates a token.
This method both checks the shape of the parsed token data and its actual value.
Parsed object sent by the client as the token.
On Electron, we want to make sure that only Electron's browser-windows access the backend services.