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

Quiz: The rank panel without a session

What happens when someone without a session opens the address of the rank panel?

Answer options

  • The panel is displayed, only the save buttons are hidden
  • The page on the server calls redirect('/sign-in') before anything from the panel reaches the browser
  • The server returns 403 with a message about the missing MANAGE_ROLES
  • The browser itself moves to /sign-in when useSession() returns nothing

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