Skip to content

Commit

Permalink
fix maxLength
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
  • Loading branch information
Frank Jogeleit committed Feb 18, 2024
1 parent 39a6d64 commit baee5e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/pkg/auth/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package auth

import (
"encoding/gob"
"math"

"github.com/gin-contrib/sessions"
"github.com/gin-gonic/gin"
Expand All @@ -18,7 +17,7 @@ func Setup(engine *gin.Engine, provider string, tempDir string) {
gob.Register(map[string]any{})

authStore := gsessions.NewFilesystemStore(tempDir, []byte("auth-store"))
authStore.MaxLength(math.MaxInt64)
authStore.MaxLength(2147483647)
authStore.Options = &gsessions.Options{
HttpOnly: true,
MaxAge: 86400 * 30,
Expand Down

0 comments on commit baee5e6

Please sign in to comment.