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
|
@@ -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) {
|