hedgequantx 2.6.114 → 2.6.116

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.6.114",
3
+ "version": "2.6.116",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -1065,13 +1065,16 @@ const setupProxyOAuth = async (provider, config) => {
1065
1065
  });
1066
1066
  }
1067
1067
 
1068
+ // Debug: show what we got
1069
+ console.log(chalk.gray(` [DEBUG] Got: "${callbackUrl ? callbackUrl.substring(0, 50) + '...' : 'EMPTY'}"`));
1070
+
1068
1071
  if (callbackUrl && callbackUrl.trim()) {
1069
1072
  const submitSpinner = ora({ text: 'Submitting callback...', color: 'cyan' }).start();
1070
1073
  try {
1071
1074
  await proxyManager.submitCallback(callbackUrl.trim(), provider.id);
1072
- submitSpinner.text = 'Verifying authorization...';
1073
- await new Promise(resolve => setTimeout(resolve, 1000));
1074
- await proxyManager.waitForAuth(authState, 10000, () => {});
1075
+ // Callback succeeded - CLIProxyAPI handles the token exchange
1076
+ // No need to poll waitForAuth, the callback endpoint already did everything
1077
+ await new Promise(resolve => setTimeout(resolve, 500));
1075
1078
  authSuccess = true;
1076
1079
  submitSpinner.succeed('Authorization successful!');
1077
1080
  } catch (submitError) {