package
0.0.0-20241030102259-7445b93c2901
Repository: https://github.com/cotopia-org/event-master.git
Documentation: pkg.go.dev
# Functions
GenerateJWT generates a JWT token.
JWTAuthMiddleware verifies the JWT token.
Login function to authenticate user and generate JWT.
ProtectedRoute is an example of a route that requires JWT authentication.
ValidateToken validates a JWT token and returns the claims.
# Variables
MockUser is a hardcoded mock user for demonstration purposes.