vibe-collab 0.6.0 → 0.7.1
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.
|
@@ -149,10 +149,9 @@ export async function authCommand(action) {
|
|
|
149
149
|
}
|
|
150
150
|
case 'logout': {
|
|
151
151
|
const data = readAuthData();
|
|
152
|
-
deleteAuthData();
|
|
153
152
|
if (data) {
|
|
154
153
|
try {
|
|
155
|
-
await fetch(`${PROXY_URL}/api/cli-token`, {
|
|
154
|
+
await fetch(`${PROXY_URL}/api/auth/cli-token`, {
|
|
156
155
|
method: 'DELETE',
|
|
157
156
|
headers: { 'Authorization': `Bearer ${data.token}` },
|
|
158
157
|
});
|
|
@@ -160,6 +159,7 @@ export async function authCommand(action) {
|
|
|
160
159
|
catch {
|
|
161
160
|
// 서버 호출 실패해도 로컬 삭제는 완료
|
|
162
161
|
}
|
|
162
|
+
deleteAuthData();
|
|
163
163
|
console.log(chalk.green(`👋 @${data.user.login} 로그아웃 완료.`));
|
|
164
164
|
}
|
|
165
165
|
else {
|