An open API service indexing awesome lists of open source software.

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

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