Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
JWTKey = []byte("your-secret-key")
)
Functions ¶
func GenerateToken ¶
GenerateToken generates a JWT token
Types ¶
type Claims ¶
type Claims struct {
UserID string `json:"user_id"`
jwt.StandardClaims
}
Claims defines the JWT claims structure
Click to show internal directories.
Click to hide internal directories.