https://github.com/trstringer/jwt-creator
Utility to quickly and easily create and verify JSON web tokens (JWT)
https://github.com/trstringer/jwt-creator
jwt jwt-authentication jwt-token pki
Last synced: 9 months ago
JSON representation
Utility to quickly and easily create and verify JSON web tokens (JWT)
- Host: GitHub
- URL: https://github.com/trstringer/jwt-creator
- Owner: trstringer
- License: other
- Created: 2022-05-28T02:19:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-04T13:28:46.000Z (over 3 years ago)
- Last Synced: 2025-05-07T09:08:43.036Z (9 months ago)
- Topics: jwt, jwt-authentication, jwt-token, pki
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 13
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jwt-creator
Quickly and easily create and verify JWTs.
## Installation
```
$ go install github.com/trstringer/jwt-creator@latest
```
## Create a JWT
```
$ jwt-creator create \
--private-key-file myprivatekey.pem \
--issued-at-now --expires-in-seconds 300 \
--issuer myissuer
```
## Verify a JWT
```
$ jwt-creator verify \
--public-key-file mypublickey.pem \
--token
```