From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_DBL_BLOCKED_OPENDNS, URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1741447710; bh=qSyTE4ZQdkyTMoCAP+ZyPA5Bx0p0/y+E2tOM2IBoofA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To:Message-ID:Date:From:Reply-To:Subject:To: Cc:In-Reply-To:References:Resent-Date:Resent-From:Resent-To: Resent-Cc:User-Agent:Content-Type:Content-Transfer-Encoding; b=raUskCcuJcYEglBggxhlXlbuv5AIjWqd5k7yEj1OtwkZ7/QD3bLEbwLKrir2c4QG+ ICQBFApfzAjAObIfxjGhXPiNMTcTuE62pIBYjU2lTmRITlQzC5LK9RMkNXYs6GAMAQ nGEX5SZD5qAMDUa+LUEHrA++XD40dl1m5ALdQ3zrxW3pfJwVe7jZ75LOG6Z7lpVxXI ETp4TCQfWXGrbirldZFB9Nuu5JGRug3LJ4gOzHrMceziiCHOOzJfAoYah6JMIj0pcB yPtEi3yUsh5JSXNdbgLyP0cDzM9KJqPBTLi70mZqjhAzfQeMWgLeaAaIcaN3eln8rY XWwXvjTMtaRcw== Received: from biznet-home.integral.gnuweeb.org (unknown [182.253.126.167]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id 10AF620B4921; Sat, 8 Mar 2025 15:28:28 +0000 (UTC) Date: Sat, 8 Mar 2025 22:28:22 +0700 From: Ammar Faizi To: Muhammad Rizki Cc: Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: Re: [PATCH v1 00/10] Relative Path, Delete Avatar, Sidebar, Toast Message-ID: References: <20250307192622.1172-1-kiizuha@gnuweeb.org> <9ff81469-404e-475d-a4e7-ad198c271078@gnuweeb.org> <175df483-52a4-4bc1-91e2-43ea2e2619c4@gnuweeb.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <175df483-52a4-4bc1-91e2-43ea2e2619c4@gnuweeb.org> X-Bpl: hUx9VaHkTWcLO7S8CQCslj6OzqBx2hfLChRz45nPESx5VSB/xuJQVOKOB1zSXE3yc9ntP27bV1M1 List-Id: On Sat, Mar 08, 2025 at 10:21:09PM +0700, Muhammad Rizki wrote: > can you try to clear the localStorage? As already explained, it works if I clear the localStorage manually. > it could be because of previous state > of user_info is not synchronized with current API structure. No. After clearing the localStorage, I tried to relogin and purposely invalidate gwm_token by doing: localStorage.setItem("gwm_token", "aaaaaa") I expect I get logged out immediately after reload. But no, it throws "500 Internal Error" on invalid token. Invalid or expired token should not trap user in "500 Internal Error" page. And whatever the user throws at you, you are not allowed to crash. You must recover from unexpected scenario. -- Ammar Faizi