Files
mtusi2026lab2/evidence/expiry.txt
T
kalibr456 8149a608f8
Skeleton contracts / contracts (pull_request) Canceled after 0s
2: PostgreSQL, вход Basic -> Bearer, сессии в Redis
2026-10-09 02:35:30 +03:00

9 lines
802 B
Plaintext

recreating api with SESSION_TTL_SECONDS=2
session issued, expires in 2.04 s; Redis TTL of the key: 1719 ms
before expiry: GET /users/me -> 200
after expiry: GET /users/me -> 401; key exists in Redis: 0
recreating api with SESSION_TTL_SECONDS from .env
normal API again: new session expires in 3600 s
PASS: session expires after SESSION_TTL_SECONDS and is rejected with 401
1 passed, 0 failed