From 3bacaff85cbf68ce4f79336c99779e3b6f23ee43 Mon Sep 17 00:00:00 2001 From: Rexogamer Date: Thu, 28 Dec 2023 08:16:09 +0000 Subject: [PATCH] fix: clear session ID when logging out --- App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/App.tsx b/App.tsx index 118f6241..75095929 100644 --- a/App.tsx +++ b/App.tsx @@ -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'}); });