Skip to content

Commit

Permalink
Update validator/rpc/intercepter.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sammy Rosso <[email protected]>
  • Loading branch information
james-prysm and saolyn authored Jan 19, 2024
1 parent 80e7ad8 commit 1b4f7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/rpc/intercepter.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (s *Server) JwtHttpInterceptor(next http.Handler) http.Handler {
_, err := jwt.Parse(token, s.validateJWT)
if err != nil {
fmt.Println(err)
http.Error(w, fmt.Errorf("unauthorized:could not parse JWT token: %v", err).Error(), http.StatusForbidden)
http.Error(w, fmt.Errorf("forbidden: could not parse JWT token: %v", err).Error(), http.StatusForbidden)
return
}
}
Expand Down

0 comments on commit 1b4f7fd

Please sign in to comment.