MCPcopy Index your code
hub / github.com/supabase/auth / limitHandler

Method limitHandler

internal/api/middleware.go:135–139  ·  view source on GitHub ↗
(lmt *limiter.Limiter)

Source from the content-addressed store, hash-verified

133}
134
135func (a *API) limitHandler(lmt *limiter.Limiter) middlewareHandler {
136 return func(w http.ResponseWriter, req *http.Request) (context.Context, error) {
137 return req.Context(), a.performRateLimiting(lmt, req)
138 }
139}
140
141// requireOAuthClientAuth authenticates an OAuth client as middleware
142// Requires client_id to be present and validates client credentials

Callers 2

NewAPIWithVersionFunction · 0.95
TestLimitHandlerMethod · 0.80

Calls 1

performRateLimitingMethod · 0.95

Tested by 1

TestLimitHandlerMethod · 0.64