Skip to content

Commit

Permalink
remove credentials and session from Onyx on signOut
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jan 25, 2022
1 parent 19e2158 commit f272bca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/actions/Session/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit f272bca

Please sign in to comment.