Categorygithub.com/coleaeason/jwtgen/v2
package
2.0.1
Repository: https://github.com/coleaeason/jwtgen.git
Documentation: pkg.go.dev

# README

jwtgen

A simple program that generates JWTs, specifically ones that look like Apple Signin JWTs.

To install:

go install github.com/coleaeason/jwtgen@latest

To use it:

$ jwtgen --help
Usage of jwtgen
Example usages:
  Generate a default, valid token:
    jwtgen
  Generate a default, valid token, and pretty-print debug information:
    jwtgen --debug -pp
  Generate an expired token for [email protected]:
    jwtgen --expired [email protected]

Options: 
  -aud string
        Audience for token (default "com.fake.fake.AppleSignIn")
  -debug
        Print some debug information
  -email string
        Email of user (default "[email protected]")
  -error string
        Specfiy an error message in this token
  -expired
        Should the token be expired, defaults to false
  -iss string
        Issuer for token (default "https://appleid.apple.com")
  -pp
        Pretty print JSON, defaults to false.
  -sub string
        Subject of the token (default "Test User")