chore: Set session cookie expiration to 3 months

This commit is contained in:
Frederico Santos 2024-07-21 21:56:37 +01:00
parent 97af57a41c
commit f221d03c68

View File

@ -27,6 +27,7 @@ import (
"os"
"strconv"
"strings"
"time"
"github.com/pagefaultgames/rogueserver/api/account"
"github.com/pagefaultgames/rogueserver/api/daily"
@ -632,6 +633,7 @@ func handleProviderCallback(w http.ResponseWriter, r *http.Request) {
Secure: true,
SameSite: http.SameSiteStrictMode,
Domain: "beta.pokerogue.net",
Expires: time.Now().Add(time.Hour * 24 * 30 * 3), // 3 months
})
}