@etsoo/react 1.4.57 → 1.4.58

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.
@@ -234,11 +234,12 @@ export class ServiceApp extends ReactApp {
234
234
  // Service user login
235
235
  this.servicePassphrase =
236
236
  (_a = this.decrypt(serviceUser.serviceDeviceId, this.settings.serviceId.toString())) !== null && _a !== void 0 ? _a : '';
237
- // Keep = true, means service could hold the refresh token for long access
238
- super.userLogin(user, refreshToken, true);
239
237
  // Service user
240
238
  this.serviceUser = serviceUser;
241
239
  // Service API token
242
240
  this.serviceApi.authorize(this.settings.authScheme, serviceUser.token);
241
+ // Keep = true, means service could hold the refresh token for long access
242
+ // Trigger Context change and serviceUser is ready then
243
+ super.userLogin(user, refreshToken, true);
243
244
  }
244
245
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.4.57",
3
+ "version": "1.4.58",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -333,13 +333,14 @@ export class ServiceApp<
333
333
  this.settings.serviceId.toString()
334
334
  ) ?? '';
335
335
 
336
- // Keep = true, means service could hold the refresh token for long access
337
- super.userLogin(user, refreshToken, true);
338
-
339
336
  // Service user
340
337
  this.serviceUser = serviceUser;
341
338
 
342
339
  // Service API token
343
340
  this.serviceApi.authorize(this.settings.authScheme, serviceUser.token);
341
+
342
+ // Keep = true, means service could hold the refresh token for long access
343
+ // Trigger Context change and serviceUser is ready then
344
+ super.userLogin(user, refreshToken, true);
344
345
  }
345
346
  }