changed token expiration time

This commit is contained in:
David Mosbach 2024-01-21 20:45:45 +01:00
parent 38e831c9b1
commit 4785a98ebe

View File

@ -145,7 +145,7 @@ mkToken u scopes state = do
now <- getCurrentTime
uuid <- nextRandom
let
lifetimeAT = 120 :: NominalDiffTime -- TODO make configurable
lifetimeAT = 3600 :: NominalDiffTime -- TODO make configurable
lifetimeRT = nominalDay -- TODO make configurable
at = JWT "Oauth2MockServer" (lifetimeAT `addUTCTime` now) uuid
rt = JWT "Oauth2MockServer" (lifetimeRT `addUTCTime` now) uuid