Merge pull request #151 from pedrofariasx/fix/windows-oauth-url

fix: Escape OAuth URL parameters for Windows CLI
This commit is contained in:
Badri Narayanan S
2026-01-19 11:43:29 +05:30
committed by GitHub

View File

@@ -95,7 +95,7 @@ function openBrowser(url) {
args = [url]; args = [url];
} else if (platform === 'win32') { } else if (platform === 'win32') {
command = 'cmd'; command = 'cmd';
args = ['/c', 'start', '', url]; args = ['/c', 'start', '', url.replace(/&/g, '^&')];
} else { } else {
command = 'xdg-open'; command = 'xdg-open';
args = [url]; args = [url];