How do you keep a user signed in to a Next.js app: a signed cookie or a database session? Which cookie options matter?
Practice it in the editor, with tests
The answer
Answer it out loud first, the way you would in the interview. Then compare.
Checking your sign-in…