package
Version:
v2.5.2
Opens a new window with list of versions in this module.
Published: Oct 31, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type JWT struct {
SignKey []byte
}
func (j *JWT) Create(claims jwt.Claims) (tokenString string, err error)
type UserClaim struct {
UserID int64 `json:"user_id"`
SecondaryID string `json:"secondary_id"`
ClientID string `json:"client_id"`
Scopes []string `json:"scopes"`
jwt.StandardClaims
}
UserClaim defines user token claim
Source Files
¶
Click to show internal directories.
Click to hide internal directories.