//! JWT Authentication and Revocation Module
//!
//! Migrated from trading_service to api for centralized authentication.
//!
//! This module provides:
//! - JWT token validation and verification
//! - Token revocation via Redis blacklist
//! - Admin endpoints for token management
//! - Enhanced security validation
//!
//! ## Architecture
//! - `service.rs` - JWT validation service
//! - `revocation.rs` - Redis-backed revocation system
//! - `endpoints.rs` - gRPC/HTTP endpoints for revocation

pub mod endpoints;
pub mod revocation;
pub mod service;

// Re-export main types
pub use endpoints::{
    AuthContext, RevocationEndpoints, RevocationResponse, RevokeCurrentTokenRequest,
    RevokeTokenRequest, RevokeUserTokensRequest,
};
pub use revocation::{
    EnhancedJwtClaims, Jti, JwtRevocationService, RevocationConfig, RevocationMetadata,
    RevocationReason, RevocationStatistics, TokenPair,
};
pub use service::{JwtClaims, JwtConfig, JwtService};
