Skip to content

Commit

Permalink
fix: clear session ID when logging out
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexogamer committed Dec 28, 2023
1 parent 5015503 commit 3bacaff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ class MainView extends React.Component {
console.log(
`[AUTH] Logging out of current session... (user: ${client.user?._id})`,
);
AsyncStorage.setItem('token', '');
AsyncStorage.multiSet([
['token', ''],
['sessionID', ''],
]);
client.logout();
this.setState({status: 'awaitingLogin'});
});
Expand Down

0 comments on commit 3bacaff

Please sign in to comment.