AdminSession delegates to service.AdminSession and applies the refreshed cookie side-effect. Requires super-admin auth.
(ctx context.Context, _ *authorizerv1.AdminSessionRequest)
| 51 | // AdminSession delegates to service.AdminSession and applies the refreshed |
| 52 | // cookie side-effect. Requires super-admin auth. |
| 53 | func (h *AdminHandler) AdminSession(ctx context.Context, _ *authorizerv1.AdminSessionRequest) (*authorizerv1.AdminSessionResponse, error) { |
| 54 | res, side, err := h.Service.AdminSession(ctx, transport.MetaFromGRPC(ctx)) |
| 55 | if err != nil { |
| 56 | return nil, err |
| 57 | } |
| 58 | _ = transport.ApplyToGRPC(ctx, side) |
| 59 | return &authorizerv1.AdminSessionResponse{Message: res.Message}, nil |
| 60 | } |
| 61 | |
| 62 | // AdminMeta delegates to service.AdminMeta and projects the result. Requires |
| 63 | // super-admin auth. |
nothing calls this directly
no test coverage detected