From 8c61f921234a640b9b59e939904671192f1c6dcb 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) }