From 4496cd4b64e51805b790728e67a018791e731cd6 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 29 Aug 2025 11:58:17 -0400 Subject: ignore: cloud solid fixes --- cloud/app/src/context/auth.session.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 cloud/app/src/context/auth.session.ts (limited to 'cloud/app/src/context/auth.session.ts') diff --git a/cloud/app/src/context/auth.session.ts b/cloud/app/src/context/auth.session.ts new file mode 100644 index 000000000..c4b3940aa --- /dev/null +++ b/cloud/app/src/context/auth.session.ts @@ -0,0 +1,23 @@ +import { useSession } from "vinxi/http" + +export interface AuthSession { + account: Record< + string, + { + id: string + email: string + } + > + current?: string +} + +export function useAuthSession() { + return useSession({ + password: "0".repeat(32), + name: "auth", + cookie: { + secure: false, + httpOnly: true, + }, + }) +} -- cgit v1.2.3