+1
-5
appview/middleware/middleware.go
+1
-5
appview/middleware/middleware.go
···
46
46
func (mw *Middleware) TryRefreshSession() middlewareFunc {
47
47
return func(next http.Handler) http.Handler {
48
48
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
49
-
_, auth, err := mw.oauth.GetSession(r)
50
-
if err != nil {
51
-
log.Println("could not refresh session", "err", err, "auth", auth)
52
-
}
53
-
49
+
_, _, _ = mw.oauth.GetSession(r)
54
50
next.ServeHTTP(w, r)
55
51
})
56
52
}