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

Method getAdminParams

api/admin.go:44–51  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

42}
43
44func (a *API) getAdminParams(r *http.Request) (*adminUserParams, error) {
45 params := adminUserParams{}
46 err := json.NewDecoder(r.Body).Decode(&params)
47 if err != nil {
48 return nil, badRequestError("Could not decode admin user params: %v", err)
49 }
50 return &params, nil
51}
52
53// adminUsers responds with a list of all users in a given audience
54func (a *API) adminUsers(w http.ResponseWriter, r *http.Request) error {

Callers 2

adminUserUpdateMethod · 0.95
adminUserCreateMethod · 0.95

Calls 1

badRequestErrorFunction · 0.85

Tested by

no test coverage detected