Skip to content

Commit 78cf807

Browse files
committed
Update key request status route to remove rate limiting
1 parent 731ebd5 commit 78cf807

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

go-relay/internal/handler/key_request.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ func RegisterKeyRequestRoutes(r chi.Router, db *database.DB, cfg *config.Config)
107107
})
108108
})
109109

110-
// GET /auth/key-request/:code/status — Poll for device flow (NO AUTH, RATE LIMITED)
111-
r.With(middleware.KeyRequestRateLimiter.Middleware).Get("/{code}/status", func(w http.ResponseWriter, r *http.Request) {
110+
// GET /auth/key-request/:code/status — Poll for device flow (NO AUTH, NO RATE LIMIT)
111+
r.Get("/{code}/status", func(w http.ResponseWriter, r *http.Request) {
112112
code := chi.URLParam(r, "code")
113113
ctx := r.Context()
114114

0 commit comments

Comments
 (0)