From 82e12dfe90c3e3874b019b44f3af2210ae87f4e6 Mon Sep 17 00:00:00 2001 From: Gabriel Dufresne Date: Tue, 13 Oct 2026 14:26:11 -0400 Subject: [PATCH] Fix GitHub login redirect_uri on macOS --- src/UniGetUI.Avalonia/Infrastructure/GitHubAuthService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UniGetUI.Avalonia/Infrastructure/GitHubAuthService.cs b/src/UniGetUI.Avalonia/Infrastructure/GitHubAuthService.cs index ab5c20fb72..2b98acde18 100644 --- a/src/UniGetUI.Avalonia/Infrastructure/GitHubAuthService.cs +++ b/src/UniGetUI.Avalonia/Infrastructure/GitHubAuthService.cs @@ -60,7 +60,8 @@ public async Task SignInAsync() _loginBackend.OnCancelled += BackgroundApiOnCancelled; await _loginBackend.Start(); - CoreTools.Launch(oauthLoginUrl.ToString()); + // ToString() unescapes the query; macOS `open` then re-escapes every '%' and corrupts redirect_uri. + CoreTools.Launch(oauthLoginUrl.AbsoluteUri); DateTime timeoutAt = DateTime.UtcNow.Add(LoginTimeout); while (_codeFromApi is null && !_loginWasCancelled && DateTime.UtcNow < timeoutAt)