lhisp-oauth-client 1.0.32 → 1.0.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lhisp-oauth-client",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "main": "src/index",
5
5
  "types": "src/index.d.ts",
6
6
  "repository": {
@@ -140,6 +140,9 @@ class LhispOauthClient {
140
140
  if (this.formatAccessToken) {
141
141
  return this.formatAccessToken(this.accessToken);
142
142
  }
143
+ if (!this.accessToken) {
144
+ throw new Error("Access Token não disponível.");
145
+ }
143
146
  return `${(_a = this.accessToken) === null || _a === void 0 ? void 0 : _a.token_type} ${(_b = this.accessToken) === null || _b === void 0 ? void 0 : _b.access_token}`;
144
147
  }
145
148
  executarRequest(_a) {