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)
| 14 | // |
| 15 | // Permissions: authorizer:admin |
| 16 | func (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 | } |
nothing calls this directly
no test coverage detected