@apso/cli 0.46.3 → 0.46.4

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.
@@ -168,6 +168,12 @@ async function refreshAccessToken() {
168
168
  }),
169
169
  });
170
170
  if (!response.ok) {
171
+ // The server rejected the refresh token, so the stored session is dead. Clear it, or
172
+ // `apso login` trusts the local expiresAt and refuses to log in again (#178).
173
+ // Network errors land in the catch below and keep the credentials.
174
+ if (response.status === 400 || response.status === 401 || response.status === 403) {
175
+ config_1.credentials.clear();
176
+ }
171
177
  return false;
172
178
  }
173
179
  const data = (await response.json());
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@apso/cli",
3
- "version": "0.46.3",
3
+ "version": "0.46.4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@apso/cli",
9
- "version": "0.46.3",
9
+ "version": "0.46.4",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@apso/schema-tools": "^0.2.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.46.3",
2
+ "version": "0.46.4",
3
3
  "commands": {
4
4
  "config": {
5
5
  "id": "config",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apso/cli",
3
- "version": "0.46.3",
3
+ "version": "0.46.4",
4
4
  "mcpName": "io.github.apsoai/apso",
5
5
  "description": "Apso CLI",
6
6
  "author": "Apso by Mavric - @mavric",