Session delegates to the transport-agnostic service layer; the rotated session cookie is applied back to the gin response from side-effects.
(ctx context.Context, params *model.SessionQueryRequest)
| 11 | // Session delegates to the transport-agnostic service layer; the rotated |
| 12 | // session cookie is applied back to the gin response from side-effects. |
| 13 | func (g *graphqlProvider) Session(ctx context.Context, params *model.SessionQueryRequest) (*model.AuthResponse, error) { |
| 14 | gc, _ := utils.GinContextFromContext(ctx) |
| 15 | res, side, err := g.ServiceProvider.Session(ctx, service.MetaFromGin(gc), params) |
| 16 | if err != nil { |
| 17 | return nil, err |
| 18 | } |
| 19 | service.ApplyToGin(gc, side) |
| 20 | return res, nil |
| 21 | } |
nothing calls this directly
no test coverage detected