Authentication
Implement secure sessions, password hashing, email verification, reset flow and optional MFA for platform admins.
A tenant-aware schema is a start, not a substitute for access controls.
Implement secure sessions, password hashing, email verification, reset flow and optional MFA for platform admins.
Resolve tenant scope from a verified session and validated host/slug. Never trust tenant IDs sent by the browser.
Enforce SUPER_ADMIN, BUSINESS_ADMIN, KITCHEN, DELIVERY and CUSTOMER permissions on the server for every action.
Calculate totals server-side from current product prices; validate availability, quantities, delivery fee and order transitions.
Use a payment provider and verify signed webhooks server-side. Never store card details or trust a client success screen.
Add audit logs, data retention rules, consent/privacy notices, backups, monitoring and tested restore procedures.