Skip to content

How to integrate servant-auth for JWT based authentication? #79

@bdoering

Description

@bdoering

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions