Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides a Json-Web-Token authentication implementation
func (*Service) GenerateToken ¶
func (j *Service) GenerateToken(claims map[string]interface{}, expire *time.Time) (string, int, error)
GenerateToken generates new Service token and populates it with user data
func (*Service) MWFunc ¶
func (j *Service) MWFunc() echo.MiddlewareFunc
MWFunc makes JWT implement the Middleware interface.
func (*Service) ParseToken ¶
ParseToken parses token from string
Click to show internal directories.
Click to hide internal directories.