summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-11-22 23:59:50 -0500
committerDax Raad <[email protected]>2025-11-22 23:59:50 -0500
commitd96d89bcb8fa146db7c14343423dad4e16ca0970 (patch)
tree8bcf122c8a23b4143984b4f36155c53af97a8c00
parent7a013d4f40d5c282320fbaad406b7a0261fd6124 (diff)
downloadopencode-d96d89bcb8fa146db7c14343423dad4e16ca0970.tar.gz
opencode-d96d89bcb8fa146db7c14343423dad4e16ca0970.zip
fix logout
-rw-r--r--packages/console/app/src/routes/user-menu.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/console/app/src/routes/user-menu.tsx b/packages/console/app/src/routes/user-menu.tsx
index 0af89f81b..7efdbf4d7 100644
--- a/packages/console/app/src/routes/user-menu.tsx
+++ b/packages/console/app/src/routes/user-menu.tsx
@@ -3,6 +3,7 @@ import { getRequestEvent } from "solid-js/web"
import { useAuthSession } from "~/context/auth.session"
import { Dropdown } from "~/component/dropdown"
import "./user-menu.css"
+import { getResponseHeaders } from "@solidjs/start/http"
const logout = action(async () => {
"use server"
@@ -17,7 +18,10 @@ const logout = action(async () => {
event!.locals.actor = undefined
return val
})
- throw redirect("/zen")
+ throw redirect("/zen", {
+ status: 302,
+ headers: getResponseHeaders(),
+ })
})
export function UserMenu(props: { email: string | null | undefined }) {