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.
@@ -1750,7 +1750,6 @@ var GuardService = /*#__PURE__*/function () {
1750
1750
  this.api = api;
1751
1751
  this.baseURL = baseURL;
1752
1752
  this.api.setAuthRefreshFn(this.authRefresh.bind(this));
1753
- this.identityCache = {};
1754
1753
  this.whoAmICache = {};
1755
1754
  }
1756
1755
  /**
@@ -2038,31 +2037,17 @@ var GuardService = /*#__PURE__*/function () {
2038
2037
  /*#__PURE__*/
2039
2038
  function () {
2040
2039
  var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(identityID) {
2041
- var _tokens$accessToken, _tokens$refreshToken;
2042
-
2043
- var tokens, cacheKey;
2044
2040
  return runtime_1.wrap(function _callee6$(_context6) {
2045
2041
  while (1) {
2046
2042
  switch (_context6.prev = _context6.next) {
2047
2043
  case 0:
2048
- tokens = this.api.getTokens();
2049
- cacheKey = ((_tokens$accessToken = tokens.accessToken) != null ? _tokens$accessToken : '') + ((_tokens$refreshToken = tokens.refreshToken) != null ? _tokens$refreshToken : '') + identityID;
2050
-
2051
- if (!(!tokens.accessToken || !this.identityCache[cacheKey])) {
2052
- _context6.next = 6;
2053
- break;
2054
- }
2055
-
2056
- _context6.next = 5;
2044
+ _context6.next = 2;
2057
2045
  return this.api.get(this.baseURL + "/v1/identities/" + identityID);
2058
2046
 
2059
- case 5:
2060
- this.identityCache[cacheKey] = _context6.sent;
2061
-
2062
- case 6:
2063
- return _context6.abrupt("return", this.identityCache[cacheKey]);
2047
+ case 2:
2048
+ return _context6.abrupt("return", _context6.sent);
2064
2049
 
2065
- case 7:
2050
+ case 3:
2066
2051
  case "end":
2067
2052
  return _context6.stop();
2068
2053
  }
@@ -2186,7 +2171,7 @@ var GuardService = /*#__PURE__*/function () {
2186
2171
  };
2187
2172
  return _context9.abrupt("return", this.api.post(this.baseURL + "/v1/identities/" + identityID + "/mfa", req, {
2188
2173
  headers: {
2189
- 'Accept': 'application/json'
2174
+ Accept: 'application/json'
2190
2175
  }
2191
2176
  }));
2192
2177