Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authx ¶
type Authx struct {
// contains filtered or unexported fields
}
Authx is a struct that represents the authx.
func NewAuthx ¶
func NewAuthx(app *configx.Application) (*Authx, error)
NewAuthx returns a new Authx.
func (*Authx) ParseJWT ¶
func (a *Authx) ParseJWT() gin.HandlerFunc
ParseJWT is used to parse the jwt.
type CustomClaims ¶
type CustomClaims struct { Email string `json:"email,omitempty"` Permissions []string `json:"permissions,omitempty"` }
CustomClaims is the custom claims.
Click to show internal directories.
Click to hide internal directories.