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

Quiz: The session in getCurrentMember

How does getCurrentMember() from lib/session.ts establish who is signed in after the sign-in lesson?

Answer options

  • It reads the CURRENT_MEMBER_ID constant set to redbeard
  • It checks the cookie through auth.api.getSession with the request headers and finds the member by e-mail address
  • It asks the browser through authClient.useSession()
  • It reads the e-mail address from the body of the POST request

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