MCPcopy Create free account
hub / github.com/TanStack/db / handleLogout

Function handleLogout

examples/react/projects/src/routes/_authenticated.tsx:25–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 const { data: projects } = useLiveQuery((q) => q.from({ projectCollection }))
24
25 const handleLogout = async () => {
26 await authClient.signOut()
27 navigate({ to: `/login` })
28 }
29
30 const handleCreateProject = () => {
31 if (newProjectName.trim() && session) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected