Skip to content

Commit 4d7e2da

Browse files
committed
docs: expand Session lifetime section with default + clock-skew note
1 parent 2acf7ca commit 4d7e2da

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/docs/configuration/auth/overview.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ Sourcebot's built-in authentication system gates your deployment, and allows adm
2424

2525
# Session lifetime
2626

27-
<Note>Session cookies are guaranteed to be valid for at least `AUTH_SESSION_MAX_AGE_SECONDS`, but may be accepted for a brief additional window before expiring. This is because the JWT verifier applies a small clock-skew tolerance when checking expiry.</Note>
27+
By default, session cookies remain valid for 30 days from the time they are issued, after which the user is signed out and must authenticate again.
28+
29+
You can change this by setting the [`AUTH_SESSION_MAX_AGE_SECONDS`](/docs/configuration/environment-variables) environment variable to the desired lifetime in seconds.
30+
31+
A session is guaranteed to remain valid for at least its configured lifetime. The JWT verifier applies a small clock-skew tolerance when checking expiry, so a session may continue to be accepted for a brief additional window past that point before it is rejected.
2832

2933
# Troubleshooting
3034

0 commit comments

Comments
 (0)