fix: preserve week-long sessions and add profile mascot
Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
1 parent
fbc827c2b8
commit
f32289f583
18 files changed
+240
-25
No files matched your search
@@ -1,3 +1,28 @@
|
||||
# Session Persistence
|
||||
|
||||
Logged-in sessions have a seven-day maximum lifetime and seven-day inactivity
|
||||
timeout (`[auth.sessions]` timebox/inactivity_timeout `168h`). The browser keeps
|
||||
its Supabase session in persistent storage and refreshes tokens automatically;
|
||||
users do not need to sign in when an access token expires. Multiple devices are
|
||||
allowed. Logout, changed passwords, revoked sessions or cleared browser storage
|
||||
still require authentication. Limits take effect when refresh is attempted, not
|
||||
by invalidating an already-issued JWT immediately.
|
||||
|
||||
On production, set `GOTRUE_SESSIONS_TIMEBOX=168h`,
|
||||
`GOTRUE_SESSIONS_INACTIVITY_TIMEOUT=168h` and
|
||||
`GOTRUE_SESSIONS_SINGLE_PER_USER=false` on the existing Auth container. Preserve
|
||||
the other runtime settings, signing keys, SMTP and image. The deployed JWT expiry
|
||||
remains 86400 seconds; session lifetime and JWT lifetime are separate settings.
|
||||
The repository's local JWT expiry remains its existing configured value.
|
||||
|
||||
Migration `20261010183614_preserve_sessions_on_unchanged_ticket` prevents the
|
||||
Pretix `_ensure_auth_user` helper from revoking sessions during unchanged imports.
|
||||
It locks the user and checks the existing password hash before updating it.
|
||||
Actual password changes continue to revoke sessions. Existing sessions that were
|
||||
already deleted cannot be restored; those users need to sign in once.
|
||||
|
||||
See [release record](../releases/2026-10-10.md#follow-up-deployments) for the
|
||||
production backup, verification and deployment boundaries.
|
||||
# Supabase Core — Local Stack
|
||||
|
||||
The Supabase core is a set of Docker containers managed by the **Supabase CLI**
|
||||
|
||||
Reference in new issue
Block a user