mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-03 13:33:32 +00:00
set 48 hr expirty to login cookie.
This commit is contained in:
@@ -34,7 +34,7 @@ type OIDCclaim struct {
|
|||||||
Picture string `json:"picture"`
|
Picture string `json:"picture"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Provider defines an OIDC provider configuration
|
// Provider defines an OIDC provider configuration
|
||||||
type Provider struct {
|
type Provider struct {
|
||||||
ID int
|
ID int
|
||||||
Provider string
|
Provider string
|
||||||
@@ -92,7 +92,7 @@ func New(cfg Config, rd *redis.Client, logger *logf.Logger) (*Auth, error) {
|
|||||||
Cookie: simplesessions.CookieOptions{
|
Cookie: simplesessions.CookieOptions{
|
||||||
IsHTTPOnly: true,
|
IsHTTPOnly: true,
|
||||||
IsSecure: true,
|
IsSecure: true,
|
||||||
MaxAge: time.Hour * 6,
|
Expires: time.Now().Add(time.Hour * 48),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user