camstack 0.7.2 → 0.7.3
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/dist/cli.js +3 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -702,7 +702,9 @@ async function whoamiCommand(opts) {
|
|
|
702
702
|
});
|
|
703
703
|
clearTimeout(timer);
|
|
704
704
|
if (res.status === 401) {
|
|
705
|
-
|
|
705
|
+
clearSession(session.server);
|
|
706
|
+
console.error(`[camstack] \u2717 Token rejected by server (revoked / expired).`);
|
|
707
|
+
console.error(`[camstack] Local cache cleared. Run \`camstack login\` to issue a new one.`);
|
|
706
708
|
process.exit(2);
|
|
707
709
|
}
|
|
708
710
|
if (!res.ok) {
|