Skip to content

Commit 2b20d61

Browse files
committed
1 year session times
1 parent 3fe6879 commit 2b20d61

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

share-auth/src/Share/OAuth/Session.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ data LoginRequest
264264
-- | Sessions expire in 30 days
265265
sessionTTL :: NominalDiffTime
266266
sessionTTL =
267-
(30 * nominalDay)
267+
(365 * nominalDay)
268268

269269
createSession :: (MonadIO m) => URI -> Set URI -> UserId -> m Session
270270
createSession sessionIssuer sessionAudience sessionUserId = do

src/Share/Web/Authentication.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import Servant
2424

2525
cookieSessionTTL :: NominalDiffTime
2626
cookieSessionTTL =
27-
30 * nominalDay
27+
365 * nominalDay
2828

2929
data UnauthenticatedError = UnauthenticatedError
3030
deriving stock (Show)

0 commit comments

Comments
 (0)