package session import ( "log/slog" "github.com/gorilla/sessions" "sneak.berlin/go/webhooker/internal/config" ) // NewForTest creates a Session with a pre-configured cookie store for use // in tests. This bypasses the fx lifecycle and database dependency, allowing // middleware and handler tests to use real session functionality. func NewForTest(store *sessions.CookieStore, cfg *config.Config, log *slog.Logger) *Session { return &Session{ store: store, config: cfg, log: log, } }