oro-sdk-apis 1.8.1 → 1.8.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.
@@ -1796,7 +1796,6 @@ var GuardService = /*#__PURE__*/function () {
1796
1796
  this.api = api;
1797
1797
  this.baseURL = baseURL;
1798
1798
  this.api.setAuthRefreshFn(this.authRefresh.bind(this));
1799
- this.identityCache = {};
1800
1799
  this.whoAmICache = {};
1801
1800
  }
1802
1801
  /**
@@ -2084,31 +2083,17 @@ var GuardService = /*#__PURE__*/function () {
2084
2083
  /*#__PURE__*/
2085
2084
  function () {
2086
2085
  var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(identityID) {
2087
- var _tokens$accessToken, _tokens$refreshToken;
2088
-
2089
- var tokens, cacheKey;
2090
2086
  return runtime_1.wrap(function _callee6$(_context6) {
2091
2087
  while (1) {
2092
2088
  switch (_context6.prev = _context6.next) {
2093
2089
  case 0:
2094
- tokens = this.api.getTokens();
2095
- cacheKey = ((_tokens$accessToken = tokens.accessToken) != null ? _tokens$accessToken : '') + ((_tokens$refreshToken = tokens.refreshToken) != null ? _tokens$refreshToken : '') + identityID;
2096
-
2097
- if (!(!tokens.accessToken || !this.identityCache[cacheKey])) {
2098
- _context6.next = 6;
2099
- break;
2100
- }
2101
-
2102
- _context6.next = 5;
2090
+ _context6.next = 2;
2103
2091
  return this.api.get(this.baseURL + "/v1/identities/" + identityID);
2104
2092
 
2105
- case 5:
2106
- this.identityCache[cacheKey] = _context6.sent;
2107
-
2108
- case 6:
2109
- return _context6.abrupt("return", this.identityCache[cacheKey]);
2093
+ case 2:
2094
+ return _context6.abrupt("return", _context6.sent);
2110
2095
 
2111
- case 7:
2096
+ case 3:
2112
2097
  case "end":
2113
2098
  return _context6.stop();
2114
2099
  }
@@ -2232,7 +2217,7 @@ var GuardService = /*#__PURE__*/function () {
2232
2217
  };
2233
2218
  return _context9.abrupt("return", this.api.post(this.baseURL + "/v1/identities/" + identityID + "/mfa", req, {
2234
2219
  headers: {
2235
- 'Accept': 'application/json'
2220
+ Accept: 'application/json'
2236
2221
  }
2237
2222
  }));
2238
2223