From f272bcac628618efb21899764b8eaf2ff3e3c8c9 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 25 Jan 2022 13:33:50 -0700 Subject: [PATCH] remove credentials and session from Onyx on signOut --- src/libs/actions/Session/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/actions/Session/index.js b/src/libs/actions/Session/index.js index 490a7951648..f57fcd7a3c0 100644 --- a/src/libs/actions/Session/index.js +++ b/src/libs/actions/Session/index.js @@ -83,6 +83,8 @@ function signOut() { }) .catch(error => Onyx.merge(ONYXKEYS.SESSION, {error: error.message})); } + Onyx.set(ONYXKEYS.SESSION, null); + Onyx.set(ONYXKEYS.CREDENTIALS, null); Timing.clearData(); redirectToSignIn(); Log.info('Redirecting to Sign In because signOut() was called');