Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Provide(NewJWTManager)
Functions ¶
This section is empty.
Types ¶
type JWTManager ¶
type JWTManager struct {
// contains filtered or unexported fields
}
func NewJWTManager ¶
func NewJWTManager(config *config.Config) *JWTManager
func (*JWTManager) Verify ¶
func (j *JWTManager) Verify(rawToken JWTToken) (*UserClaims, error)
type UserClaims ¶
type UserClaims struct {
UserId uint `json:"userId"`
jwt.RegisteredClaims
}
Click to show internal directories.
Click to hide internal directories.