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

Method SignUp

internal/graphql/signup.go:17–30  ·  view source on GitHub ↗

SignUp delegates to the transport-agnostic service layer. Resolvers in this package are thin transport adapters: pull gin.Context out of the GraphQL context, build RequestMetadata, call the service, apply any cookie side-effects back onto gin. Permission: none

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

Source from the content-addressed store, hash-verified

15//
16// Permission: none
17func (g *graphqlProvider) SignUp(ctx context.Context, params *model.SignUpRequest) (*model.AuthResponse, error) {
18 log := g.Log.With().Str("func", "SignUp").Logger()
19 gc, err := utils.GinContextFromContext(ctx)
20 if err != nil {
21 log.Debug().Err(err).Msg("Failed to get GinContext")
22 return nil, err
23 }
24 res, side, err := g.ServiceProvider.SignUp(ctx, service.MetaFromGin(gc), params)
25 if err != nil {
26 return nil, err
27 }
28 service.ApplyToGin(gc, side)
29 return res, nil
30}

Callers

nothing calls this directly

Calls 4

GinContextFromContextFunction · 0.92
MetaFromGinFunction · 0.92
ApplyToGinFunction · 0.92
SignUpMethod · 0.65

Tested by

no test coverage detected