Go cookies and JWT
Implementing a very basic web app to try out JWT based authorisation via cookie storage for a private route using Go.
This is not a test of secure authentication, encryption or data storage, so the page uses a very obvious password and no attempt to hash and store passwords, CRUD etc.
To run this project
- Have Go installed on your system. This was made with v1.17. Grab here if needed.
- Clone this repo to your system.
- In the route folder run
go mod download
to get dependencies - run
go run main.go
to start the server. - Navigate to localhost:5000 in the browser to view the app.