fix: retrieve auth value correctly

This commit is contained in:
Siddharth Gelera
2025-09-15 11:05:25 +05:30
parent 1edfa87d5d
commit 44cea985ac

View File

@@ -78,7 +78,7 @@ export const bruRequestToJson = (data: string | any, parsed: boolean = false): a
])
});
} else if (requestType === 'ws-request') {
transformedJson.request.auth.mode = _.get(json, 'grpc.auth', 'none');
transformedJson.request.auth.mode = _.get(json, 'ws.auth', 'none');
transformedJson.request.body = _.get(json, 'body', {
mode: 'ws',
grpc: _.get(json, 'body.ws', [