From bbace2b2c127a0055622311906948b9fd59c5faa Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Thu, 10 Nov 2022 00:12:09 +0100 Subject: [PATCH] feat: add .all support in auth arguments --- packages/web/src/helpers/computeAuthStepVariables.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/web/src/helpers/computeAuthStepVariables.ts b/packages/web/src/helpers/computeAuthStepVariables.ts index caffad03..6db45a49 100644 --- a/packages/web/src/helpers/computeAuthStepVariables.ts +++ b/packages/web/src/helpers/computeAuthStepVariables.ts @@ -27,6 +27,13 @@ const computeAuthStepVariables = ( } if (variable.value) { + if (variable.value.endsWith('.all}')) { + const key = variable.value.replace('{', '').replace('.all}', ''); + variables[variable.name] = aggregatedData[key]; + + continue; + } + const computedVariable = template(variable.value, { interpolate })( aggregatedData );