MCPcopy Create free account
hub / github.com/authorizerdev/authorizer / UpdateProfile

Method UpdateProfile

internal/graphql/update_profile.go:13–21  ·  view source on GitHub ↗

UpdateProfile delegates to the transport-agnostic service layer. Permissions: authenticated user.

(ctx context.Context, params *model.UpdateProfileRequest)

Source from the content-addressed store, hash-verified

11// UpdateProfile delegates to the transport-agnostic service layer.
12// Permissions: authenticated user.
13func (g *graphqlProvider) UpdateProfile(ctx context.Context, params *model.UpdateProfileRequest) (*model.Response, error) {
14 gc, _ := utils.GinContextFromContext(ctx)
15 res, side, err := g.ServiceProvider.UpdateProfile(ctx, service.MetaFromGin(gc), params)
16 if err != nil {
17 return nil, err
18 }
19 service.ApplyToGin(gc, side)
20 return res, nil
21}

Callers

nothing calls this directly

Calls 4

GinContextFromContextFunction · 0.92
MetaFromGinFunction · 0.92
ApplyToGinFunction · 0.92
UpdateProfileMethod · 0.65

Tested by

no test coverage detected