@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.
- package/dist/lib/api/client.js +6 -0
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/lib/api/client.js
CHANGED
|
@@ -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());
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apso/cli",
|
|
3
|
-
"version": "0.46.
|
|
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.
|
|
9
|
+
"version": "0.46.4",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@apso/schema-tools": "^0.2.0",
|
package/oclif.manifest.json
CHANGED