Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHashAndPassword ¶
Types ¶
type Claims ¶
type Claims struct {
Username string `json:"username"`
jwt.RegisteredClaims
}
Create a struct that will be encoded to a JWT. We add jwt.RegisteredClaims as an embedded type, to provide fields like expiry time
Click to show internal directories.
Click to hide internal directories.