Files

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