alpha-cli-toolkit 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/alpha.js +1 -0
- package/package.json +1 -1
- package/utils/auth.js +2 -2
package/bin/alpha.js
CHANGED
package/package.json
CHANGED
package/utils/auth.js
CHANGED
|
@@ -78,9 +78,9 @@ async function authenticateViaBrowser() {
|
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
server.listen(0, async () => {
|
|
81
|
-
const FRONTEND_URL = process.env.FRONTEND_URL;
|
|
81
|
+
const FRONTEND_URL = process.env.FRONTEND_URL || 'https://alpha-cli-ui.vercel.app';
|
|
82
82
|
const port = server.address().port;
|
|
83
|
-
const loginUrl = `${FRONTEND_URL}/?callback=${encodeURIComponent(
|
|
83
|
+
const loginUrl = `${FRONTEND_URL}/?callback=${encodeURIComponent(`http://localhost:${port}`)}`;
|
|
84
84
|
|
|
85
85
|
// Dynamic import for `open` (ESM-only since v9)
|
|
86
86
|
const open = (await import('open')).default;
|