package
0.0.0-20250210232107-a102d609ae71
Repository: https://github.com/triaksa-space/be-mail-platform.git
Documentation: pkg.go.dev

# Functions

JWTMiddleware validates the JWT token and extracts user claims.
RateLimiterMiddleware returns a middleware that blocks users after too many failed login attempts.
RoleMiddleware checks if the user's role ID is in the list of required role IDs.

# Structs

RateLimiterConfig holds the configuration for rate limiting.