MCPcopy Create free account
hub / github.com/netlify/gotrue / requireEmailProvider

Method requireEmailProvider

api/middleware.go:187–196  ·  view source on GitHub ↗
(w http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

185}
186
187func (a *API) requireEmailProvider(w http.ResponseWriter, req *http.Request) (context.Context, error) {
188 ctx := req.Context()
189 config := a.getConfig(ctx)
190
191 if config.External.Email.Disabled {
192 return nil, badRequestError("Unsupported email provider")
193 }
194
195 return ctx, nil
196}

Callers

nothing calls this directly

Calls 2

getConfigMethod · 0.95
badRequestErrorFunction · 0.85

Tested by

no test coverage detected