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

Method AdminSession

internal/graphql/admin_session.go:16–24  ·  view source on GitHub ↗

AdminSession delegates to the transport-agnostic service layer and applies the refreshed admin session cookie side-effect. Resolver is a thin transport adapter. Permissions: authorizer:admin

(ctx context.Context)

Source from the content-addressed store, hash-verified

14//
15// Permissions: authorizer:admin
16func (g *graphqlProvider) AdminSession(ctx context.Context) (*model.Response, error) {
17 gc, _ := utils.GinContextFromContext(ctx)
18 res, side, err := g.adminService().AdminSession(ctx, service.MetaFromGin(gc))
19 if err != nil {
20 return nil, err
21 }
22 service.ApplyToGin(gc, side)
23 return res, nil
24}

Callers

nothing calls this directly

Calls 5

adminServiceMethod · 0.95
GinContextFromContextFunction · 0.92
MetaFromGinFunction · 0.92
ApplyToGinFunction · 0.92
AdminSessionMethod · 0.65

Tested by

no test coverage detected