Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomClaims ¶
type CustomClaims struct { UserID string `json:"UserID"` FamilyID string `json:"FamilyID"` TTL int `json:"TTL"` jwt.StandardClaims `json:"Claims"` }
CustomClaims data type.
type JWTToken ¶
type JWTToken struct{}
JWTToken data type.
func (*JWTToken) ValidateMiddleware ¶
func (j *JWTToken) ValidateMiddleware(next http.HandlerFunc) http.HandlerFunc
ValidateMiddleware is how we ensure that only authorized persons are able to access endpoints.
Click to show internal directories.
Click to hide internal directories.