Documentation ¶
Index ¶
Constants ¶
View Source
const (
Issuer = "weave.io"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomClaims ¶
type JWTService ¶
type JWTService struct {
// contains filtered or unexported fields
}
func NewJWTService ¶
func NewJWTService(secret string) *JWTService
func (*JWTService) CreateToken ¶
func (s *JWTService) CreateToken(user *model.User) (string, error)
func (*JWTService) ParseToken ¶
func (s *JWTService) ParseToken(tokenString string) (*model.User, error)
Click to show internal directories.
Click to hide internal directories.