ignore: cloud solid fixes

This commit is contained in:
Dax Raad
2025-08-29 11:58:17 -04:00
parent 7f5e5fccc8
commit 4496cd4b64
9 changed files with 206 additions and 351 deletions

View File

@@ -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<AuthSession>({
password: "0".repeat(32),
name: "auth",
cookie: {
secure: false,
httpOnly: true,
},
})
}