Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTManager ¶
type JWTManager struct {
// contains filtered or unexported fields
}
func NewJWTManager ¶
func NewJWTManager(secretKey string, tokenDuration time.Duration) *JWTManager
func (*JWTManager) Verify ¶
func (manager *JWTManager) Verify(accessToken string) (*UserClaims, error)
type UserClaims ¶
type UserClaims struct {
jwt.StandardClaims
Username string `json:"username"`
}
Click to show internal directories.
Click to hide internal directories.