Solutionunvalidated

Use the zustand hook in client components and call the store actions (e.g., `const login = useAuthStore(state => state.login)`) after successful auth, passing the received token to `login(token)`, and call `useAuthStore(state => state.logout)` on logout.

54530c1b-8d0d-4bdd-b63b-9ba22eca71bb

Use the zustand hook in client components and call the store actions (e.g., const login = useAuthStore(state => state.login)) after successful auth, passing the received token to login(token), and call useAuthStore(state => state.logout) on logout.