Skip to content

Commit

Permalink
fixed log jwt check error
Browse files Browse the repository at this point in the history
Signed-off-by: Avelino <avelinorun@gmail.com>
  • Loading branch information
avelino committed Dec 9, 2021
1 parent 41d841e commit e681d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middlewares/middlewares.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func JwtMiddleware(key string, algo string) negroni.Handler {
middleware.CheckJWT(handler).ServeHTTP(w, r)

if encounteredError {
log.Println("check jwt error", err.Error())
log.Println("check jwt error")
w.Write([]byte(`{"error": "Failed to validate JWT"}`))
return
}
Expand Down

0 comments on commit e681d09

Please sign in to comment.