https://github.com/darinm223/jwt-scotty
Simplified JWT example from https://github.com/eckyputrady/haskell-scotty-realworld-example-app
https://github.com/darinm223/jwt-scotty
Last synced: 12 months ago
JSON representation
Simplified JWT example from https://github.com/eckyputrady/haskell-scotty-realworld-example-app
- Host: GitHub
- URL: https://github.com/darinm223/jwt-scotty
- Owner: DarinM223
- License: bsd-3-clause
- Created: 2019-09-20T01:52:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-14T11:41:23.000Z (almost 7 years ago)
- Last Synced: 2025-08-02T02:43:38.494Z (about 1 year ago)
- Language: Haskell
- Size: 147 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
A self-contained example of JWT authentication with Scotty. Everything other than the JWT authentication parts is simplified for easier understanding.
To build the project, you need to have GHC 8.6.5 installed through ghcup and cabal 3.0 installed. Run `cabal build` and `cabal exec jwt-scotty` to start the server.
Logging in as a user and being granted a token:

Using the token to verify logged-in user:
