Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenService ¶
type TokenService struct {
// contains filtered or unexported fields
}
func NewTokenService ¶
func NewTokenService(tokenTTL int64, secret []byte) *TokenService
func (TokenService) Validate ¶
func (ts TokenService) Validate(tokenString string) (jwt.MapClaims, error)
Click to show internal directories.
Click to hide internal directories.