Skip to content

Auth and row security

View as Markdown

Auth exports and row-security primitives from @sapporta/server plus generated project auth adapters.

  • Abilities authorize named actions; data authority supplies the active workspace and user boundary.
  • workspaceGlobal requires the server-owned workspace column.
  • workspaceUserScoped additionally requires the server-owned user scope column.
  • Row guards create predicates, trusted insert values, trusted update patches, and foreign-key visibility checks.
  • Clients cannot stamp or widen workspace, owner, role, or scope values.