CodeZettaInterview Hub

React · Server Components · Senior · Best Practice

Security implication of RSCs?

Short Interview Answer

Don't leak secrets into props sent to the client; server-only modules must stay server-only.

Detailed Explanation

Treat the client boundary as public. Validate auth on the server.

Did you know this answer?