This commit is contained in:
Sam 2022-05-14 21:56:46 +02:00
parent 79eefb1ccf
commit 85754a9208
1 changed files with 0 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package server
import ( import (
"context" "context"
"fmt"
"net/http" "net/http"
"codeberg.org/u1f320/pronouns.cc/backend/server/auth" "codeberg.org/u1f320/pronouns.cc/backend/server/auth"
@ -20,7 +19,6 @@ func (s *Server) maybeAuth(next http.Handler) http.Handler {
claims, err := s.Auth.Claims(token) claims, err := s.Auth.Claims(token)
if err != nil { if err != nil {
fmt.Printf("%q: %q\n", "Authorization", token)
render.Status(r, errCodeStatuses[ErrForbidden]) render.Status(r, errCodeStatuses[ErrForbidden])
render.JSON(w, r, APIError{ render.JSON(w, r, APIError{
Code: ErrForbidden, Code: ErrForbidden,