fix: log out issue

This commit is contained in:
trafficlunar 2026-05-14 12:20:24 +01:00
parent d5c619567a
commit 333c97bfca
3 changed files with 20 additions and 2 deletions

View file

@ -90,7 +90,7 @@ export default function Header() {
</li>
<li title="Logout">
<Link
to={`${import.meta.env.VITE_API_URL}/api/auth/signout`}
to={`${import.meta.env.VITE_API_URL}/api/auth/logout`}
aria-label="Log Out"
className="pill button p-2! aspect-square h-full"
data-tooltip="Log Out"

View file

@ -22,7 +22,7 @@ export default function ProfileLayout() {
return;
}
fetch(`${import.meta.env.VITE_API_URL}/api/profile/${userId}/info`)
fetch(`${import.meta.env.VITE_API_URL}/api/profile/${userId}/info`, { cache: "no-store" })
.then((res) => {
if (!res.ok) throw new Error("Failed to fetch profile");
return res.json();