diff --git a/auth/auth.go b/auth/auth.go index 5915bf7..d41b5ab 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -42,5 +42,6 @@ func (auth *AuthMiddleware) ExpectUser(r *http.Request) *db.User { func NewAuthMiddleware(protectedHandler http.Handler, publicHandler http.Handler) *AuthMiddleware { store := sessions.NewCookieStore([]byte(env.Secret)) + store.Options.MaxAge = 86_400 return &AuthMiddleware{store, protectedHandler, publicHandler} }