Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTokenExpired returned when the jwt token has expired ErrTokenExpired = errors.New("JWT token has expired") )
Functions ¶
func GenerateClaim ¶
GenerateClaim generate a JWT token containing a claim using the supplied certificates and user
Types ¶
type Certs ¶
type Certs struct { PublicKey *rsa.PublicKey PrivateKey *rsa.PrivateKey }
Certs used by JWT to sign and verify tokens
func GenerateTestCerts ¶
GenerateTestCerts generate certs for testing or hacking
Click to show internal directories.
Click to hide internal directories.