Next.js · Route Handlers · Senior · Scenario
Can Route Handlers set cookies for auth?
Short Interview Answer
Yes — use NextResponse and cookie APIs carefully with Secure/HttpOnly/SameSite.
Detailed Explanation
Coordinate with middleware and server components reading cookies. Be explicit about cookie paths and domains in multi-subdomain setups.