diff --git a/src/services/pythonCliAuth.ts b/src/services/pythonCliAuth.ts index 4f3fd13..003f636 100644 --- a/src/services/pythonCliAuth.ts +++ b/src/services/pythonCliAuth.ts @@ -77,6 +77,8 @@ class PythonCliAuth { } }); + console.log({ response }) + if (!response.success) { throw new Error(response.error || response.message || 'Login failed'); } @@ -282,7 +284,7 @@ class PythonCliAuth { try { const token = localStorage.getItem('auth_token'); const userStr = localStorage.getItem('auth_user'); - + if (token && userStr) { this.token = token; this.user = JSON.parse(userStr);