auth.user_id() function, which extracts the user's ID from the JWT (JSON Web Token) provided by your authentication provider. In this demo, Neon Auth issues the JWTs, and Neon's Data API passes them to Postgres, so RLS can enforce per-user access.
For more details on RLS with Data API, see our [Row-Level Security with Neon guide](/docs/guides/row-level-security).
// [!code highlight] {moment(createdAt).fromNow()} // [!code highlight]
// [!code highlight] // [!code highlight] {onDelete && ( // [!code highlight] // [!code highlight] )}