MCPcopy Index your code
hub / github.com/anomalyco/opencode / useAuthSession

Function useAuthSession

packages/console/app/src/context/auth.ts:28–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28export 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
40export const getActor = async (workspace?: string): Promise<Actor.Info> => {
41 "use server"

Callers 6

user-menu.tsxFile · 0.90
GETFunction · 0.90
GETFunction · 0.90
GETFunction · 0.90
createSetupIntentFunction · 0.90
getActorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected