Atproto AMA app
at main 11 lines 260 B view raw
1import { useSession } from 'vinxi/http' 2 3export type SessionData = { 4 sessionId?: string 5} 6 7export const getSession = () => { 8 return useSession<SessionData>({ 9 password: process.env.COOKIE_SECRET || 'complex_password_at_least_32_characters_long', 10 }) 11}