Question · Vibe coding with Claude Code course · Module 9: Discord clone

Quiz: A lock only in the component

The crew list hides when authClient.useSession() has no session, but it takes its data from /api/crew, which doesn't check the session. What do you add to the request for Claude Code?

Answer options

  • A session check in the /api/crew route on the server and a test that a request without a session gets 401
  • Hiding the list in the side menu as well
  • Moving the list to a Server Component without changing the route
  • A longer BETTER_AUTH_SECRET in .env.local

You can check the correct answer by solving this task in the CodeWorlds game.