oops 2
This commit is contained in:
parent
85754a9208
commit
020ac15a00
1 changed files with 3 additions and 3 deletions
|
@ -19,10 +19,10 @@ func (s *Server) maybeAuth(next http.Handler) http.Handler {
|
|||
|
||||
claims, err := s.Auth.Claims(token)
|
||||
if err != nil {
|
||||
render.Status(r, errCodeStatuses[ErrForbidden])
|
||||
render.Status(r, errCodeStatuses[ErrInvalidToken])
|
||||
render.JSON(w, r, APIError{
|
||||
Code: ErrForbidden,
|
||||
Message: errCodeMessages[ErrForbidden],
|
||||
Code: ErrInvalidToken,
|
||||
Message: errCodeMessages[ErrInvalidToken],
|
||||
})
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue