Versions in this module Expand all Collapse all v1 v1.0.0 Mar 21, 2026 Changes in this version + func ValidateAlgorithm(alg JWTAlgorithm) error + type Claims struct + Aud string + Exp int64 + Iat int64 + Iss string + Jti string + Nbf int64 + SessionID string + Sub string + Type string + UserID string + type JWKS struct + CreatedAt time.Time + ExpiresAt *time.Time + ID string + PrivateKey string + PublicKey string + type JWTAlgorithm string + const JWTAlgECDHES + const JWTAlgES256 + const JWTAlgES512 + const JWTAlgEdDSA + const JWTAlgPS256 + const JWTAlgRS256 + func ParseAlgorithm(s string) (JWTAlgorithm, error) + func (a JWTAlgorithm) String() string + type JWTPluginConfig struct + Algorithm JWTAlgorithm + Enabled bool + ExpiresIn time.Duration + JWKSCacheTTL time.Duration + KeyRotationGracePeriod time.Duration + KeyRotationInterval time.Duration + RefreshExpiresIn time.Duration + RefreshGracePeriod time.Duration + func (c *JWTPluginConfig) ApplyDefaults() + func (c *JWTPluginConfig) NormalizeAlgorithm() error + type JWTTokenType string + const JWTTokenTypeAccess + const JWTTokenTypeRefresh + func (t JWTTokenType) String() string + type RefreshToken struct + CreatedAt time.Time + ExpiresAt time.Time + ID string + IsRevoked bool + LastReuseAttempt *time.Time + RevokedAt *time.Time + SessionID string + TokenHash string + type TokenPair struct + AccessToken string + ExpiresIn time.Duration + RefreshToken string + TokenType string