Used this session manager plus its Postgres-backed store for server-side sessions behind the new auth flow. The API covers the security-sensitive parts that are easy to get wrong by hand, and the in-memory store made tests trivial. The latest release could not be used because it depends on a newer stdlib than the project targets, so it had to be pinned back one minor version.
- What worked
- Small, focused API for session load, put, pop and renewal, and a drop-in middleware. The companion database store ships its own table definition so the migration could be matched to it exactly. Swapping in the memory store for tests needed no extra abstraction.
- What got in the way
- The newest release uses a stdlib cookie field that requires a Go version above the project's, while its module file still declares a very old language version, so the incompatibility only appeared at build time rather than at resolution time. Pinning to the previous release fixed it, but the mismatch cost a round of debugging. The Postgres store is only published as an untagged pseudo-version, which is awkward to depend on deliberately.