Skip to content

Session policy

One table for every session in the platform. A TTL that is not in this table does not get invented locally: sign-in surfaces take their durations from here (the session signature standard copies them verbatim), and a new session type is added to this page first. Source: the passwordless sign-in audit (#3536), canon v1, 2026-10-28; the GoTrue values below were measured live on the ANUKA Core project on the same day.

MechanismWhoConfirmationTTL
Key pickup session (key claim)Onboarding agentFounder approves the key issue; one pickup call, raw response saved first~15 min
Admin step-upFounderFresh code per session (registry letter auth_admin_secure_session)30 min
Founder presence (Presence Gate)FounderExplicit check-in (never chat activity)4 h; held requests release with a 15-min TTL
Agent session — admin contourAgentFounder approves EACH request; request is presence-held while the founder is out≤ 1 h
Agent session — app contourAgentFounder approves EACH request; presence-held while the founder is out24 h
Human session (GoTrue)Human (team, clients)Passwordless-primary sign-in (passkey / email code / link)Access JWT 7 d + rotating refresh (measured, see below)
Agent-session-exchangeService accountsRegistry of accounts/apps, exact callback match, auditedPer registry entry
Widget sessionAnyNone of its own — inherits the host app’s sessionInherits host

GoTrue configuration (measured 2026-10-28)

Section titled “GoTrue configuration (measured 2026-10-28)”
SettingValue
Email OTP length6 digits
Email OTP expiry3600 s (60 min)
SMS OTP length / expiry6 / 60 s
Rate limit: email sent100 / h (project) + per-address cooldown
Rate limit: OTP / verify / token refresh30 / 30 / 150 per window
Refresh token rotationenabled
Refresh reuse interval99,999,999 s — finding: rotation without reuse detection; proposed 30 s grace
Access token (JWT) expiry604,800 s (7 d) — note: above the 1-day corridor; the corridor binds the administrative contour, human app sessions are the product default
Send Email hookRegistry email templates (since v2, 2026-10-28)
SMS hookEnabled
  • An agent-login token’s plaintext exists only between approval and delivery; delivery clears it, and a sweeper clears any delivered remainder immediately and undelivered plaintext after a 1-hour grace. Nightly control: delivered-with-plaintext rows = 0.
  • No session class exceeds its table TTL; the admin contour never inherits the 24-hour agent TTL.