mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
chore: Set session cookie expiration to 3 months
This commit is contained in:
parent
97af57a41c
commit
f221d03c68
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user