Skip to content

persist and use jwt for embedded mode#815

Closed
pgpbj wants to merge 1 commit into
Termix-SSH:mainfrom
pgpbj:bugfix/embeddedmode-auth-failure
Closed

persist and use jwt for embedded mode#815
pgpbj wants to merge 1 commit into
Termix-SSH:mainfrom
pgpbj:bugfix/embeddedmode-auth-failure

Conversation

@pgpbj
Copy link
Copy Markdown

@pgpbj pgpbj commented May 25, 2026

Overview

Short summary of what this PR does

  • Fixed: Local server mode on the main branch is completely broken for me. I cannot add hosts, or do anything really. These changes essentially get this mode working by adding the jwt to the requests going to the internal server.

Changes Made

The change in main-axios.ts stores the jwt coming from the user/login request to local storage so that it can later be included or appended to the requests. I don't understand how this code is supposed to work, so the change to this file is only speculative -- I assume there is a better fix.

Once I was able to create a host in local server mode, I immediately started getting "Authentication failed" errors when trying to connect to the host via SSH. This is why the fix in Terminal.tsx was required.

I tried porting these changes to the code from the dev-2.3.0 branch. They improved the behavior by allowing me to login and create hosts. However, it looks like there may be some other issue in that branch as SSH connections seem to hang and timeout.

Related Issues

Screenshots / Demos

Checklist

  • Code follows project style guidelines
  • Supports mobile and desktop UI/app (if applicable)
  • I have read Contributing.md
  • This is not a translation request. See docs

@LukeGus
Copy link
Copy Markdown
Member

LukeGus commented May 26, 2026

Changes ported to dev-2.3.0 branch. Thanks for the fix!

@LukeGus LukeGus closed this May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants