Thank you for this starter project! Being relatively new to Haskell, the structure seems clear and easy to follow with nice separation of concerns.
I would like to integrate the servant-auth library for easy JWT authentication, but whatever I try, I do not get it to compile. Could maybe somebody give me an indication about the general approach that would be necessary?
What I tried:
Maybe I have approached this all wrong? How would you use JWT authentication without repeating authentication logic for each handler?
Thank you for this starter project! Being relatively new to Haskell, the structure seems clear and easy to follow with nice separation of concerns.
I would like to integrate the
servant-authlibrary for easy JWT authentication, but whatever I try, I do not get it to compile. Could maybe somebody give me an indication about the general approach that would be necessary?What I tried:
IOaway fromacceptLogin.Servant.Auth.Server.acceptLoginMaybe I have approached this all wrong? How would you use JWT authentication without repeating authentication logic for each handler?