Versions in this module Expand all Collapse all v0 v0.0.2 Aug 11, 2023 Changes in this version + const JWTAlgorithm + const MaxExpirationDelta + const MinExpirationDelta + func CreateClaims(j *JWTHandler) jwt.Claims + func ParseRSAPrivateKeyFromPEM(key []byte) (*rsa.PrivateKey, error) + func ParseRSAPublicKeyFromPrivateKeyPEM(key []byte) (*rsa.PublicKey, error) + type JWTHandler struct + Audience string + ExpirationTime time.Duration + SecondsBeforeExpire time.Duration + ServiceAccount *service_account.ServiceAccount + func NewJWTHandler(sa *service_account.ServiceAccount, secondsBeforeExpire, tokenDuration int, ...) (*JWTHandler, error) + func (j *JWTHandler) GenerateToken() (string, error) + func (j *JWTHandler) IsTokenExpired(tokenString string) (bool, error)