@orbis-systems/orbis-api-clients 0.5.2 → 0.5.3

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.
@@ -444,7 +444,7 @@ class $538ed1203bac2e79$export$f280b732bbc5934b extends (0, $3621850f1f570615$ex
444
444
  isTokenExpired(token) {
445
445
  const payload = (0, $ixKlR$jwtdecode.jwtDecode)(token);
446
446
  if (!payload.exp) return true;
447
- return (0, $ixKlR$datefns.isBefore)((0, $ixKlR$datefns.subMinutes)(payload.exp * 1000, 5), Date.now());
447
+ return (0, $ixKlR$datefns.isBefore)((0, $ixKlR$datefns.subMinutes)(payload.exp * 1000, 1), Date.now());
448
448
  }
449
449
  async renewToken() {
450
450
  const callback = this.config.onRenewToken ?? this.renewTokenCallback;
@@ -461,7 +461,7 @@ class $4d6a8fd4875e2166$export$c3b634545cedfd73 extends (0, $538ed1203bac2e79$ex
461
461
  const error = data ? data.error || data.errors : undefined;
462
462
  if (error) {
463
463
  const errorString = JSON.stringify(error);
464
- const matched = errorString.match(/"(ERR_.+):/);
464
+ const matched = errorString.match(/"(ERR_.+?);?"/);
465
465
  if (matched) {
466
466
  const errorCode = matched[1]?.toString() || '';
467
467
  return {
@@ -6842,6 +6842,21 @@ class $99afd9e3cb938fa3$export$bbc9669481600618 {
6842
6842
  secure: true
6843
6843
  });
6844
6844
  }
6845
+ /**
6846
+ * @tags Watchmen Ffi User Account Management
6847
+ * @name UserInformation
6848
+ * @summary User Information
6849
+ * @request GET:/rest/v1/uam/user/data
6850
+ * @secure
6851
+ */ userInformation(query, config) {
6852
+ return this.apiClient.request({
6853
+ ...config,
6854
+ url: `/rest/v1/uam/user/data`,
6855
+ method: 'GET',
6856
+ params: query,
6857
+ secure: true
6858
+ });
6859
+ }
6845
6860
  /**
6846
6861
  * @tags Watchmen Ffi User Account Management
6847
6862
  * @name ListLinkedAccounts