changed token expiration time
This commit is contained in:
parent
38e831c9b1
commit
4785a98ebe
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user