summaryrefslogtreecommitdiffhomepage
path: root/cloud
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-08-28 14:18:37 -0400
committerJay V <[email protected]>2025-08-28 14:18:37 -0400
commit3de1ce467f7ff76f94c90878babb19f239bc9543 (patch)
treec8c7cb559ec15cc2095000e9af8379dbf1ab27f9 /cloud
parenteff50c0aab254c96966d94599c882a5956c73a44 (diff)
downloadopencode-3de1ce467f7ff76f94c90878babb19f239bc9543.tar.gz
opencode-3de1ce467f7ff76f94c90878babb19f239bc9543.zip
ignore: cloud
Diffstat (limited to 'cloud')
-rw-r--r--cloud/app/src/context/auth.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/cloud/app/src/context/auth.tsx b/cloud/app/src/context/auth.tsx
index 90db24d21..afcd3feae 100644
--- a/cloud/app/src/context/auth.tsx
+++ b/cloud/app/src/context/auth.tsx
@@ -21,11 +21,8 @@ export const getActor = query(async (): Promise<Actor.Info> => {
const url = new URL(evt!.request.headers.get("referer") ?? evt!.request.url)
const auth = await useAuthSession()
const [workspaceHint] = url.pathname.split("/").filter((x) => x.length > 0)
- console.log("here1")
if (!workspaceHint) {
- console.log("here2")
if (auth.data.current) {
- console.log("here3")
const current = auth.data.account[auth.data.current]
return {
type: "account",
@@ -102,6 +99,10 @@ export function useAuthSession() {
return useSession<AuthSession>({
password: "0".repeat(32),
name: "auth",
+ cookie: {
+ secure: false,
+ httpOnly: true,
+ },
})
}