This project demonstrates a JWT authentication flow with Go, chi
and jwtauth
.
-
Replace
<jwt-secret>
inmain.go
with a secret key that is private to you.Example:
const Secret = "42a00d84-9914-4a77-b6bd-d2a9d09c6795"
-
Install the dependencies:
$ make install_deps
-
Run the service:
$ make run_service
Feel free to clone this project and build upon it!