oauth2-cli 1.0.0 → 1.0.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [1.0.1](https://github.com/battis/oauth2-cli/compare/oauth2-cli/1.0.0...oauth2-cli/1.0.1) (2026-03-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * catch error in isAuthorized() if _not_ authorized ([0699e6e](https://github.com/battis/oauth2-cli/commit/0699e6e92c7498cd0544dea66f637a54f2abb828))
11
+
5
12
  ## [1.0.0](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.9...oauth2-cli/1.0.0) (2026-02-20)
6
13
 
7
14
  ### ⚠ BREAKING CHANGES
package/dist/Client.js CHANGED
@@ -113,7 +113,12 @@ export class Client extends EventEmitter {
113
113
  }
114
114
  else {
115
115
  return await this.tokenLock.runExclusive(async () => {
116
- return !!(await this.refreshTokenGrant());
116
+ try {
117
+ return !!(await this.refreshTokenGrant());
118
+ }
119
+ catch (_) {
120
+ return false;
121
+ }
117
122
  });
118
123
  }
119
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oauth2-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Acquire API access tokens via OAuth 2.0 / OpenID Connect within CLI tools",
5
5
  "homepage": "https://github.com/battis/oauth2-cli/tree/main/packages/oauth2-cli#readme",
6
6
  "repository": {
@@ -23,8 +23,8 @@
23
23
  "open": "^11.0.0",
24
24
  "openid-client": "^6.8.2",
25
25
  "ora": "^9.3.0",
26
- "requestish": "0.1.3",
27
- "gcrtl": "0.1.7"
26
+ "gcrtl": "0.1.7",
27
+ "requestish": "0.1.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@battis/descriptive-types": "^0.2.6",