HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleservant-auth-server-0.4.10.0Haskell2010

Servant.Auth.Server.Internal.Cookie

Synopsis
valueacceptLogin
  1. :: (AddHeader mods "Set-Cookie" SetCookie response withOneCookie, AddHeader mods "Set-Cookie" SetCookie withOneCookie withTwoCookies, ToJWT session)
  2. => CookieSettings
  3. -> JWTSettings
  4. -> session
  5. -> IO (Maybe (response -> withTwoCookies))

For a JWT-serializable session, returns a function that decorates a provided response object with XSRF and session cookies. This should be used when a user successfully authenticates with credentials.