From 1690ce1891580b80bc816514110b0c3a4036b8bb Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Thu, 5 Feb 2026 18:59:15 +0200 Subject: [PATCH] Document token lifetime env vars in .env.example --- surfsense_backend/.env.example | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/surfsense_backend/.env.example b/surfsense_backend/.env.example index 2e10f4e36..628329917 100644 --- a/surfsense_backend/.env.example +++ b/surfsense_backend/.env.example @@ -32,6 +32,11 @@ ELECTRIC_DB_PASSWORD=electric_password SCHEDULE_CHECKER_INTERVAL=5m SECRET_KEY=SECRET + +# JWT Token Lifetimes (optional, defaults shown) +# ACCESS_TOKEN_LIFETIME_SECONDS=86400 # 1 day +# REFRESH_TOKEN_LIFETIME_SECONDS=1209600 # 2 weeks + NEXT_FRONTEND_URL=http://localhost:3000 # Backend URL for OAuth callbacks (optional, set when behind reverse proxy with HTTPS)