Skip to content
public-library›Rules›React›Authenticate and authorize inside every Server Action

Authenticate and authorize inside every Server Action

Treat each Server Action as a public endpoint. Inside the action itself, verify who the caller is, validate the input, and check that the caller may perform this operation on this data.

In the full rule