Use requireAuth() as the first call in every authenticated server action
Every server action that modifies data must call requireAuth() first to validate the user session and get orgId.
Why This Matters
Server actions are public HTTP endpoints. Without auth checks, any unauthenticated request can trigger mutations.
Tags
nextjssupabaseAuthentication
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 3+ others. Get actionable feedback before code ships.