diff --git a/.changeset/cached-service-cleanup.md b/.changeset/cached-service-cleanup.md new file mode 100644 index 0000000000..0f703a28ea --- /dev/null +++ b/.changeset/cached-service-cleanup.md @@ -0,0 +1,5 @@ +--- +'@backstage/backend-defaults': patch +--- + +Fixed a race condition in `CachedUserInfoService` where a failed request could incorrectly evict a newer cache entry for the same token. The error handler now verifies the map entry is still the same promise before deleting it.