oops
This commit is contained in:
		
							parent
							
								
									79eefb1ccf
								
							
						
					
					
						commit
						85754a9208
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -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, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue