@troxy/cli 0.1.4 → 0.1.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/auth.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@troxy/cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "AI payment control — protect your agent's payments with policies",
5
5
  "type": "module",
6
6
  "bin": {
package/src/auth.js CHANGED
@@ -52,13 +52,13 @@ export async function runLogin({ email } = {}) {
52
52
 
53
53
  const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
54
54
  const token = await new Promise(resolve =>
55
- rl.question(' Paste the code from the email: ', ans => { rl.close(); resolve(ans.trim()); })
55
+ rl.question(' Enter the code from your email: ', ans => { rl.close(); resolve(ans.trim()); })
56
56
  );
57
57
 
58
58
  process.stdout.write(' Verifying... ');
59
59
  try {
60
60
  const result = await api.verify(token);
61
- saveSession({ jwt: result.token, email });
61
+ saveSession({ jwt: result.access_token, email });
62
62
  console.log('✓');
63
63
  console.log(`\n Logged in as ${email}\n`);
64
64
  } catch (err) {