From a79239eaac0c4e7fc7a06862037e1d35d41958da Mon Sep 17 00:00:00 2001
From: Thomas Citharel <tcit@tcit.fr>
Date: Fri, 20 Aug 2021 18:48:40 +0200
Subject: [PATCH] Delete current actor ID as well from local storage when
 unlogging

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
---
 js/src/utils/auth.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/js/src/utils/auth.ts b/js/src/utils/auth.ts
index 4c61a87a5..534456782 100644
--- a/js/src/utils/auth.ts
+++ b/js/src/utils/auth.ts
@@ -47,6 +47,7 @@ export function deleteUserData(): void {
     AUTH_USER_EMAIL,
     AUTH_ACCESS_TOKEN,
     AUTH_REFRESH_TOKEN,
+    AUTH_USER_ACTOR_ID,
     AUTH_USER_ROLE,
   ].forEach((key) => {
     localStorage.removeItem(key);