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