Skip to content

Commit

Permalink
Merge pull request #7397 from Expensify/cmartins-deleteCredentialsOnS…
Browse files Browse the repository at this point in the history
…ignOut

Remove credentials and session from Onyx on sign out
  • Loading branch information
danieldoglas authored Jan 25, 2022
2 parents fc3e62c + f272bca commit ba15491
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 ba15491

Please sign in to comment.