()
| 26 | } |
| 27 | |
| 28 | export function useAuthSession() { |
| 29 | return useSession<AuthSession>({ |
| 30 | password: Resource.ZEN_SESSION_SECRET.value, |
| 31 | name: "auth", |
| 32 | maxAge: 60 * 60 * 24 * 365, |
| 33 | cookie: { |
| 34 | secure: false, |
| 35 | httpOnly: true, |
| 36 | }, |
| 37 | }) |
| 38 | } |
| 39 | |
| 40 | export const getActor = async (workspace?: string): Promise<Actor.Info> => { |
| 41 | "use server" |
no outgoing calls
no test coverage detected