https://github.com/evzpav/jwt-token-creation
https://github.com/evzpav/jwt-token-creation
go-jwt golang jwt
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/evzpav/jwt-token-creation
- Owner: evzpav
- Created: 2019-10-03T15:40:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-03T15:45:14.000Z (over 5 years ago)
- Last Synced: 2023-03-05T15:40:18.445Z (about 2 years ago)
- Topics: go-jwt, golang, jwt
- Language: Go
- Size: 140 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jwt Token Creation
### Generate key pair:
```bash
# Generate key pair and convert to PEM format
make gen-keys```
### Token will be generated from private key file
### Default expiry time is 5 minutes### Generate jwt token with claims:
```bash
make gen-token
# token will be printed on terminal
```### Token is validated with the public key file to get the claims