Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonWebTokenService ¶
type JsonWebTokenService struct {
// contains filtered or unexported fields
}
func NewJsonWebTokenService ¶
func NewJsonWebTokenService() (*JsonWebTokenService, error)
func (*JsonWebTokenService) GenerateTokenWithUserClaims ¶
func (jwts *JsonWebTokenService) GenerateTokenWithUserClaims(usr models.User) (string, error)
func (*JsonWebTokenService) ValidateAndParseToken ¶
func (jwts *JsonWebTokenService) ValidateAndParseToken(rawToken string) (*TokenClaims, error)
Click to show internal directories.
Click to hide internal directories.