https://github.com/victorsteven/manage-jwt
This application enable you Create a JSON and Invalidate it when ever you wish without waiting for the token to expire. You can play with it here:
https://github.com/victorsteven/manage-jwt
go jwt jwt-authentication
Last synced: 27 days ago
JSON representation
This application enable you Create a JSON and Invalidate it when ever you wish without waiting for the token to expire. You can play with it here:
- Host: GitHub
- URL: https://github.com/victorsteven/manage-jwt
- Owner: victorsteven
- Created: 2020-01-23T22:20:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T05:55:14.000Z (over 2 years ago)
- Last Synced: 2025-04-06T14:37:47.601Z (about 2 months ago)
- Topics: go, jwt, jwt-authentication
- Language: Go
- Homepage: https://manage-jwt.herokuapp.com
- Size: 1.3 MB
- Stars: 10
- Watchers: 2
- Forks: 5
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://circleci.com/gh/victorsteven/manage-jwt)
#### Clone
- Clone this project to your local machine `https://github.com/victorsteven/manage-jwt.git`
#### Heroku App
Application was deployed to Heroku. Use public URL [https://manage-jwt.herokuapp.com](https://manage-jwt.herokuapp.com) with API endpoints.
#### Setup
- Add your database details in the .env file.
- Running Application
> Run the command below
```shell
$ go run main.go
```
- Use `http://localhost:8888` as base url for endpoints## API Endpoints
| METHOD | DESCRIPTION | ENDPOINTS |
| ------ | --------------------------------------- | ------------------------- |
| POST | Register/Signup | `/user` |
| POST | Login | `/login` |
| POST | Create a todo | `/todo` |
| POST | Logout | `/logout` |## Tests
- Run test for all endpoints
> run the command below(ensure that your test details is setup in the .env file)
```shell
$ go test ./...
```## Author
- [Steven Victor](https://twitter.com/stevensunflash)