Documentation ¶
Index ¶
- func Configure(cnf map[string]interface{}) error
- func CreateToken(user map[string]interface{}, w http.ResponseWriter, r *http.Request) (string, error)
- func ParseToken(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)
- func RefreshToken(user map[string]interface{}, w http.ResponseWriter, r *http.Request) error
- type Jwt
- type JwtClaims
- type JwtConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func ParseToken ¶
func RefreshToken ¶
Types ¶
type JwtClaims ¶
type JwtClaims struct { *gojwt.StandardClaims User map[string]interface{} }
Click to show internal directories.
Click to hide internal directories.