Skip to content

Commit 2b5e998

Browse files
Merge pull request #16 from CodeAnt-AI/login
login url
2 parents ad10804 + b2a7a15 commit 2b5e998

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.4.9] - 29/05/2026
4+
- Login Url
5+
6+
## [0.4.8] - 29/05/2026
7+
- Start scan
8+
39
## [0.4.7] - 22/05/2026
410
- Scans center
511

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeant-cli",
3-
"version": "0.4.8",
3+
"version": "0.4.9",
44
"description": "Code review CLI tool",
55
"type": "module",
66
"bin": {

src/commands/login.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default function Login() {
1111
const { exit } = useApp();
1212
const [status, setStatus] = useState('opening');
1313
const [error, setError] = useState(null);
14+
const [loginUrl, setLoginUrl] = useState('');
1415

1516
useEffect(() => {
1617
// Check if already logged in
@@ -24,6 +25,7 @@ export default function Login() {
2425
const token = randomUUID();
2526
const baseUrl = getBaseUrl();
2627
const loginUrl = `https://app.codeant.ai?ideLoginToken=${token}`;
28+
setLoginUrl(loginUrl);
2729
const pollUrl = `${baseUrl}/extension/login/status?apiKey=${token}`;
2830

2931
// Open browser
@@ -94,7 +96,7 @@ export default function Login() {
9496
return React.createElement(
9597
Box,
9698
{ flexDirection: 'column', padding: 1 },
97-
React.createElement(Text, { color: 'cyan' }, 'Waiting for login...'),
99+
React.createElement(Text, { color: 'cyan' }, `Waiting for login. Open this URL in your browser: ${loginUrl}`),
98100
React.createElement(Text, { color: 'gray' }, 'Complete the login in your browser.'),
99101
React.createElement(Text, { color: 'gray' }, 'Checking every 10 seconds. Timeout in 10 minutes.')
100102
);

0 commit comments

Comments
 (0)