[GH-ISSUE #588] Authentication sequence freezing upon opening the browser #350

Closed
opened 2026-02-28 14:32:23 +03:00 by kerem · 2 comments
Owner

Originally created by @gitRaiku on GitHub (Feb 21, 2025).
Original GitHub issue: https://github.com/jpochyla/psst/issues/588

Describe the bug
When first logging in with psst, the code path runs through

let (auth_url, pkce_verifier) = oauth::generate_auth_url(8888);
if open::that(&auth_url).is_err() {
    data.error_alert("Failed to open browser");
    return;
}

in psst-gui/src/ui/preferences.rs.

Running open::that() opens firefox, halting execution until firefox is closed, blocking the creation of the thread, blocking with it the creation of the oauth socket.

To Reproduce
Run psst-gui for the first time.

Expected behavior
Have the socket be created while firefox is running.

Environment

  • OS: Arch linux 6.13.2
  • Firefox: 135.0
Originally created by @gitRaiku on GitHub (Feb 21, 2025). Original GitHub issue: https://github.com/jpochyla/psst/issues/588 **Describe the bug** When first logging in with psst, the code path runs through ``` let (auth_url, pkce_verifier) = oauth::generate_auth_url(8888); if open::that(&auth_url).is_err() { data.error_alert("Failed to open browser"); return; } ``` in ``psst-gui/src/ui/preferences.rs``. Running open::that() opens firefox, halting execution until firefox is closed, blocking the creation of the thread, blocking with it the creation of the oauth socket. **To Reproduce** Run psst-gui for the first time. **Expected behavior** Have the socket be created while firefox is running. **Environment** - OS: Arch linux 6.13.2 - Firefox: 135.0
kerem 2026-02-28 14:32:23 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@gitRaiku commented on GitHub (Feb 21, 2025):

Pull request #589 tries to alleviate this issue.

<!-- gh-comment-id:2675417877 --> @gitRaiku commented on GitHub (Feb 21, 2025): Pull request #589 tries to alleviate this issue.
Author
Owner

@jacksongoode commented on GitHub (Feb 22, 2025):

Closed in latest commit

<!-- gh-comment-id:2675965265 --> @jacksongoode commented on GitHub (Feb 22, 2025): Closed in latest commit
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#350
No description provided.