feat: custom cookie age

This commit is contained in:
Stavros
2025-01-25 15:29:17 +02:00
parent 2c7144937a
commit cc480085c5
3 changed files with 5 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ func (api *API) Init() {
Path: "/",
HttpOnly: true,
Secure: isSecure,
MaxAge: api.Config.CookieExpiry,
})
router.Use(sessions.Sessions("tinyauth", store))