Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateJwt ¶
Types ¶
type AuthMWHandler ¶
type AuthMWHandler struct {
// contains filtered or unexported fields
}
func NewAuthMWHandler ¶
func NewAuthMWHandler(logger *zap.SugaredLogger, key string) *AuthMWHandler
func (*AuthMWHandler) RequireAuthTokenHandler ¶
func (h *AuthMWHandler) RequireAuthTokenHandler(rw http.ResponseWriter, r *http.Request) (jwt.MapClaims, error)
type KeyJWTClaims ¶
type KeyJWTClaims struct{}
Click to show internal directories.
Click to hide internal directories.