JWT Authentication
5/14/25Less than 1 minutecomponentjwtgingrpc
JWT Authentication Component
jwt
is a Token management component based on golang-jwt, providing complete JWT generation and parsing capabilities.
Core Features:
- Supports various signature algorithms such as HS256/HS384/HS512
- Provides complete Token lifecycle management
- Built-in Token validation and expiration check mechanism
Click to view Example of generating and verifying JWT token.
Framework Integration
gin framework integration
Provides out-of-the-box JWT authentication middleware, supporting route-level permission control. Click to view Example of using jwt in gin.
gRPC framework integration
Provides gRPC interceptor implementation, supporting service/method-level JWT authentication. Click to view Example of using jwt in gRPC.