fix(app): preserve auth token credentials (#25636)
This commit is contained in:
parent
825ab2e38d
commit
ca6150d6f0
8 changed files with 176 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue