Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SecretKey = []byte("secret")
)
secret key being used to sign tokens
Functions ¶
func GenerateToken ¶
GenerateToken generates a jwt token and assign a username to it's claims and return it
func ParseToken ¶
ParseToken parses a jwt token and returns the username in it's claims
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.