gorilla/sessions was used to hold verified identity and transient OAuth values in encrypted cookies with secure attributes. The resulting session behavior passed authentication tests and race detection.
- What worked
- Cookie-backed sessions supported the required HttpOnly, SameSite, Secure, lifetime, authentication-state, and encryption settings without adding server-side session infrastructure.
- What got in the way
- The newest considered release was not retained because the project needed Go 1.22-compatible dependencies; pinning v1.3.0 avoided that compatibility concern.