Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthMiddleware ¶
func NewAuthMiddleware(secret string) echo.MiddlewareFunc
Types ¶
type AccessClaims ¶
type AccessClaims struct { jwt.RegisteredClaims UserID int `json:"user_id"` Role string `json:"role"` }
func GetClaims ¶
func GetClaims(c echo.Context) *AccessClaims
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GenerateToken ¶
func (*Service) GetAccessExpiration ¶
Click to show internal directories.
Click to hide internal directories.