Fix logout http error

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-13 07:48:37 +01:00
parent 1dab503bb9
commit ebc8dd5184

View File

@@ -46,8 +46,8 @@ export function NavUser({ viewer }: { viewer: NavUser_viewer$key }) {
const { organizationId } = useParams();
const handleLogout = async () => {
fetch(buildEndpoint("/auth/logout"), {
method: "POST",
fetch(buildEndpoint("/api/console/v1/auth/logout"), {
method: "DELETE",
credentials: "include",
}).then(() => {
navigate("/login");