13 lines
213 B
Python
13 lines
213 B
Python
from __future__ import annotations
|
|
|
|
import os
|
|
|
|
|
|
SESSION_TTL_SECONDS = int(
|
|
os.getenv("SESSION_TTL_SECONDS", "3600")
|
|
)
|
|
|
|
|
|
if SESSION_TTL_SECONDS < 1:
|
|
raise ValueError("SESSION_TTL_SECONDS must be positive")
|