Documentation
¶
Overview ¶
Package jwt provides JWT token creation and parsing.
It wraps golang-jwt to provide typed claims with user identity fields (UserId, Username, NickName, UUID) and automatic expiration management.
Package jwt provides JWT token creation and parsing.
It wraps golang-jwt to provide typed claims with user identity fields (UserId, Username, NickName, UUID) and automatic expiration management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct {
UserId int `json:"user_id"`
Username string `json:"username"`
NickName string `json:"nick_name"`
UUID uuid.UUID `json:"uuid"`
BufferTime int64 `json:"buffer_time"`
jwt.StandardClaims
}
Claims represents the JWT claims with user identity information.