@oxyhq/core 17.0.0 → 17.0.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.
@@ -166,6 +166,12 @@ function createOxyUserInvalidationHandler(options = {}) {
166
166
  * wrong data.
167
167
  */
168
168
  function evictOxyIdentityCache(oxy, userId) {
169
+ // Match the sweep the user mixin runs after a local profile write — session-
170
+ // bound and /users/me entries are keyed without the user id, so they must be
171
+ // prefix-swept on cross-service invalidation too.
172
+ oxy.clearCacheByPrefix('GET:/session/user/');
173
+ oxy.clearCacheByPrefix('GET:/users/me');
174
+ oxy.clearCacheByPrefix('GET:/auth/lookup/');
169
175
  oxy.clearCacheEntry(`GET:/users/${userId}`);
170
176
  oxy.clearCacheByPrefix('GET:/profiles/username/');
171
177
  oxy.clearCacheByPrefix('GET:/profiles/resolve');