@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.
@@ -251,7 +251,7 @@ class $538ed1203bac2e79$export$f280b732bbc5934b extends (0, $3621850f1f570615$ex
251
251
  isTokenExpired(token) {
252
252
  const payload = (0, $6VTA9$jwtdecode.jwtDecode)(token);
253
253
  if (!payload.exp) return true;
254
- return (0, $6VTA9$datefns.isBefore)((0, $6VTA9$datefns.subMinutes)(payload.exp * 1000, 5), Date.now());
254
+ return (0, $6VTA9$datefns.isBefore)((0, $6VTA9$datefns.subMinutes)(payload.exp * 1000, 1), Date.now());
255
255
  }
256
256
  async renewToken() {
257
257
  const callback = this.config.onRenewToken ?? this.renewTokenCallback;