From c67de30d8cdee8dc9f934e8a17ba932cb7ea4352 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Thu, 3 Mar 2022 07:20:30 +0000 Subject: [PATCH] Invalidate user cache on logout --- packages/backend-core/src/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend-core/src/utils.js b/packages/backend-core/src/utils.js index 45fb4acd55..c653ce7b52 100644 --- a/packages/backend-core/src/utils.js +++ b/packages/backend-core/src/utils.js @@ -273,4 +273,5 @@ exports.platformLogout = async ({ ctx, userId, keepActiveSession }) => { userId, sessions.map(({ sessionId }) => sessionId) ) + await userCache.invalidateUser(userId) }