Essential components
The authentication provider uses session identifiers for secure account access. The stoko_locale language preference is kept for up to 12 months and the stokontrol.cookie-consent.v1 preference record for up to 180 days in the browser. A versioned draft of business settings entered during initial clinic setup is kept per user and clinic in the browser to prevent loss after a refresh or connection interruption; it becomes unusable after 24 hours and is removed the next time setup opens. It is also cleared after successful completion or when switching accounts from setup, and contains no patient data. These essential records remain separate from optional analytics.
