package
0.0.0-20250120051524-750653d550e2
Repository: https://github.com/thrive-spectrexq/nexdefend.git
Documentation: pkg.go.dev

# Functions

GenerateJWT generates a JWT token for a user based on user ID.
JWTMiddleware verifies the JWT token in the Authorization header.
LoginHandler handles user login and returns JWT upon success.
RegisterHandler handles new user registrations.

# Structs

Claims struct for storing the user ID in the JWT token.