Summary
Fortexa's wallet login issues the fortexa_session cookie. Add regression tests for cookie flags and expiry behavior so production session hardening does not drift.
High security value, easy because this is mostly tests around existing auth routes/session helpers.
Scope
- Test cookie flags for login/session issue path: HttpOnly, SameSite, Path, Max-Age/Expires, Secure behavior when environment indicates production.
- Test logout clears the cookie if logout route exists.
- Test expired or tampered session tokens are rejected.
- Document any environment-dependent cookie behavior in README or auth comments.
Guardrails
- Do not change login flow semantics unless tests reveal a real hardening bug.
- Do not weaken local development behavior.
- Do not include real signatures or private material.
Acceptance criteria
- Cookie security attributes are covered by tests.
- Expired/tampered tokens fail safely.
- Existing auth tests still pass.
Wave complexity (maintainer)
High - 200 points
Summary
Fortexa's wallet login issues the
fortexa_sessioncookie. Add regression tests for cookie flags and expiry behavior so production session hardening does not drift.High security value, easy because this is mostly tests around existing auth routes/session helpers.
Scope
Guardrails
Acceptance criteria
Wave complexity (maintainer)
High - 200 points