@grandlinex/base-con 1.0.1 → 1.0.2

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.
@@ -233,7 +233,7 @@ class BaseCon {
233
233
  });
234
234
  if (token.code === 200 || token.code === 201) {
235
235
  if (!dry) {
236
- this.authorization = `Bearer ${token.data?.token}`;
236
+ this.authorization = token.data?.token || null;
237
237
  this.disconnected = false;
238
238
  this.noAuth = false;
239
239
  this.reconnect = async () => {
@@ -227,7 +227,7 @@ export default class BaseCon {
227
227
  });
228
228
  if (token.code === 200 || token.code === 201) {
229
229
  if (!dry) {
230
- this.authorization = `Bearer ${token.data?.token}`;
230
+ this.authorization = token.data?.token || null;
231
231
  this.disconnected = false;
232
232
  this.noAuth = false;
233
233
  this.reconnect = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grandlinex/base-con",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {