| 1234567891011121314151617181920212223 |
- 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,
- },
- })
- }
|