fix(app): preserve auth token credentials (#25636)

This commit is contained in:
Kit Langton
2026-05-03 17:13:42 -04:00
committed by GitHub
parent 825ab2e38d
commit ca6150d6f0
8 changed files with 176 additions and 27 deletions

View File

@@ -503,7 +503,16 @@ export const Terminal = (props: TerminalProps) => {
drop?.()
const socket = new WebSocket(
terminalWebSocketURL({ url, id, directory, cursor: seek, sameOrigin, username, password }),
terminalWebSocketURL({
url,
id,
directory,
cursor: seek,
sameOrigin,
username,
password,
authToken: server.current?.type === "http" ? server.current.authToken : false,
}),
)
socket.binaryType = "arraybuffer"
ws = socket