From 5485b119cf9c8fd88b6d8b98fa5f19b80f404087 Mon Sep 17 00:00:00 2001 From: Erno Wever Date: Fri, 28 Jan 2022 23:07:10 +0000 Subject: [PATCH] fix: clear user state on logout (#234) --- src/ParseUser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ParseUser.js b/src/ParseUser.js index e1d924e397..6d832c1b0e 100644 --- a/src/ParseUser.js +++ b/src/ParseUser.js @@ -1163,6 +1163,7 @@ const DefaultController = { } currentUser._logOutWithAll(); currentUser._finishFetch({ sessionToken: undefined }); + currentUser._clearServerData(); } currentUserCacheMatchesDisk = true; currentUserCache = null;