Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserProjects ¶
GetUserProjects - func to parse token and check to valid
Types ¶
type Token ¶
type Token struct {
Token string `json:"token"`
}
Token - struct for token
func (Token) Generate ¶
func (t Token) Generate(role string, user string, projects []string) (tokenstring string, err error)
Generate - genereta default jwt
Click to show internal directories.
Click to hide internal directories.