Skip to content

Cookies and local storage

Sign-in cookies, login state, and browser storage — nothing for ads.

Last updated: 11 November 2026

This page lists browser storage used by The Beehive website as implemented in code. We do not use advertising or third-party tracking cookies in this repository.

Last updated: 11 November 2026

beehive_session (cookie)

  • Purpose: Holds a signed JWT so the server knows you after Discord login.
  • Set by: The web app on successful login; cleared on logout.
  • Duration: Up to 7 days (SESSION_MAX_AGE), unless you log out earlier.
  • Flags: HTTP-only, SameSite=Lax, Secure in production, path /.
  • Not stored: Your Discord password or long-lived Discord access token.

When DATABASE_URL is set, each login also creates a matching row in auth_sessions so logout can revoke the session server-side.

beehive_oauth_state (cookie)

  • Purpose: Sealed PKCE + state for the Discord redirect (prevents login CSRF).
  • Duration: About 10 minutes (OAUTH_STATE_TTL_MS).
  • Flags: HTTP-only, SameSite=Lax, Secure in production, path /api/auth only.
  • Cleared: When Discord sends you back to /api/auth/callback.

beehive-cookie-notice (localStorage)

  • Purpose: Remembers that you dismissed the cookie banner on this browser.
  • Duration: Until you clear site data for this origin.
  • Sent to server: No. It never leaves your device.

Join-click analytics (no cookie)

  • Purpose: Count Discord invite link clicks so staff can see which pages drive joins.
  • Trigger: Activating a control with data-analytics="join_discord" (header, footer, join page, and similar).
  • Transport: POST /api/analytics through navigator.sendBeacon (or fetch with keepalive as a fallback).
  • Cookie: None — this path does not set or require analytics cookies.
  • Payload: Event name and current page path only (no Discord id or session id).

What we do not set

No Meta Pixel, Google Analytics cookies, or cross-site ad trackers appear in this codebase. Optional ANALYTICS_KEY in .env.example is reserved for future server-side wiring; the first-party /api/analytics route does not require it today.

More detail

See the privacy policy for database fields and hosting. Questions: contact@krithiv.dev.