backend-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Server.Handlers.AuthHandlers

Documentation

type AuthAPI = ("login" :> (ReqBody '[JSON] UserLoginData :> Post '[JSON] (Headers '[Header "Set-Cookie" SetCookie, Header "Set-Cookie" SetCookie] NoContent))) :<|> ("logout" :> Get '[JSON] (Headers '[Header "Set-Cookie" SetCookie, Header "Set-Cookie" SetCookie] NoContent)) Source #

authServer :: CookieSettings -> JWTSettings -> Server AuthAPI Source #