Versions in this module Expand all Collapse all v0 v0.0.9 Nov 16, 2024 Changes in this version + type Data struct + Email string + UserID int64 + type JWT struct + func NewJWT(cfg config.JWTConfig, redis app_redis.Redis) *JWT + func (j *JWT) GenerateToken(ctx context.Context, request PayloadToken) (token string, err error) + func (j *JWT) IsTokenRevoked(ctx context.Context, token string) bool + func (j *JWT) RevokeToken(ctx context.Context, token string, expiration time.Duration) error + func (j *JWT) ValidateToken(c echo.Context, token string) error + type PayloadToken struct + Data *Data + func NewTokenInformation(ctx echo.Context) (*PayloadToken, error)