diff --git a/server/handlers.go b/server/handlers.go index 58366a8848a92e2d55ff03f20ac504e18a71a4f7..b35e25e908e3cda9d271403e6de9a45e5a194464 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -628,12 +628,6 @@ func (s *Server) handleApproval(w http.ResponseWriter, r *http.Request) { switch r.Method { case http.MethodGet: - // TODO: `finalizeLogin()` now sends code directly to client without going through this endpoint, - // the `if skipApproval { ... }` block needs to be removed after a grace period. - if s.skipApproval { - s.sendCodeResponse(w, r, authReq) - return - } client, err := s.storage.GetClient(authReq.ClientID) if err != nil { s.logger.Errorf("Failed to get client %q: %v", authReq.ClientID, err)