Commit 578ce21
committed
fix: pass auth token to browser WebSocket connection
When the server is started with --auth-token, the browser client now
passes the token via query parameter (?token=...) when connecting to
the ORPC WebSocket endpoint. The token is read from VITE_AUTH_TOKEN
environment variable at build time.
Change-Id: Ic0e253cf128cae361af5032b0dbc0decb92dbd5f
Signed-off-by: Thomas Kosiewski <tk@coder.com>1 parent 1531544 commit 578ce21
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
0 commit comments