1
0
Fork 0
mirror of synced 2024-06-02 18:44:54 +12:00

Invalidate user cache on logout

This commit is contained in:
Rory Powell 2022-03-03 07:20:30 +00:00
parent 091f054e8a
commit c67de30d8c

View file

@ -273,4 +273,5 @@ exports.platformLogout = async ({ ctx, userId, keepActiveSession }) => {
userId,
sessions.map(({ sessionId }) => sessionId)
)
await userCache.invalidateUser(userId)
}