Cookie Policy
Learn how Tarnish uses essential local storage and cookies.
Essential sign-in cookies
Tarnish uses only essential first-party cookies on api.tarnish.app to keep you securely signed in. When connected over HTTPS, your signed session cookie is named __Secure-better-auth.session_token. It is marked Secure, HttpOnly, and SameSite=Lax, scoped strictly with Path=/ to the API host, and set to last up to seven days of inactivity so the server can recognise your session. Active usage refreshes the session rolling expiration. During password sign-in, a separate signed cookie named __Secure-better-auth.two_factor holds a temporary verification challenge for up to ten minutes while you enter your code; it is likewise marked Secure, HttpOnly, SameSite=Lax, and scoped with Path=/ to the API host.
Email verification codes are handled separately from cookies. The app stores a hashed code record server-side; the temporary two-factor cookie carries the pending challenge, not the code itself. These cookies are sent to Tarnish's API, are never used for advertising, tracking, or marketing across websites, and expire or delete when you sign out or when your session ends. Browser details such as private browsing can affect cookie availability. Because every cookie we set is strictly necessary to run the site and authenticate accounts, Tarnish does not display optional cookie category toggles or marketing consent banners.
Browser storage on your device
Tarnish saves your study progress and interface choices in browser storage (localStorage) rather than in cookies. This includes the subjects you open, your written answers, results, programmes, paper drafts and timer progress, study programme rounds, reading history, answer language, last-visit time, saved badge state, and motion preferences.
Without an account, study records stay in this browser. Existing browser records and an open-paper draft remain on this device for refresh and recovery when you sign in, rather than being deleted or silently merged. Local browser records remain until Tarnish removes them as part of an app action or you clear this site's browser data. Clearing browser data removes local unlinked records, but does not remove copies already saved to an account on our servers.
If two different records for the same question conflict, the app also saves the full conflicting records in a browser entry scoped to the signed-in account or anonymous browser; it holds up to 64 conflicts per scope and does not automatically clear them. Tarnish also stores the cookie-notice dismissal, the one-time Profile prompt dismissal for the signed-in account, and import-job progress in localStorage.
For a signed-in account, localStorage also holds a small account hint (the account ID and last verified time, with no email, password, or session proof) and an account-specific queue of changes not yet acknowledged by the server. Queued changes can include study or settings data, such as preferred return times. The full signed-in account snapshot is not saved in localStorage; the server supplies it to the app, and the browser keeps pending changes so they can resume syncing. Explicit sign-out clears the account hint but parks its pending queue so it can resume if you sign in again; Tarnish keeps parked queues separate by account ID and does not load or merge them into another account. Confirmed account deletion clears that account's queue.
Storage retention and external processors
Application source code does not automatically delete your saved study history by age, including after one year. Account records remain stored until you request account deletion through Settings. Deleting your account deletes your account profile and study history from active application databases. Previously stored comment records are separate, are not purged by this feature removal, and are anonymized on account deletion. Payment records that must be kept for accounting or legal reasons are kept without your name or email address. Hosted infrastructure backups may persist in accordance with provider disaster-recovery retention schedules.
Tarnish relies on selected external services for core site operations: Cloudflare for secure site delivery, Neon for hosted database storage, Brevo for transactional email verification codes, and Resend for account welcome notices and support messages. Paid plans, when bought, are paid through Razorpay. If you choose Google sign-in, Google returns your verified account details to Tarnish's API callback, which briefly uses the verified email address to complete sign-in. Where signups are limited to an invitation list, that address is checked against the list first, and an address that is not on the list is rejected without creating an app account. Source review does not establish those providers' independent retention, access, or backup practices, and no optional cookie category or accept/reject control is provided.