From 68112047d12728b223da1ada9b82e2d898f62d51 Mon Sep 17 00:00:00 2001 From: ThaminduDilshan Date: Wed, 11 Mar 2026 18:47:11 +0530 Subject: [PATCH 1/2] Modify timer text to use the label field --- .../src/components/presentation/auth/AuthOptionFactory.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react/src/components/presentation/auth/AuthOptionFactory.tsx b/packages/react/src/components/presentation/auth/AuthOptionFactory.tsx index 371abb70..cc342650 100644 --- a/packages/react/src/components/presentation/auth/AuthOptionFactory.tsx +++ b/packages/react/src/components/presentation/auth/AuthOptionFactory.tsx @@ -498,8 +498,7 @@ const createAuthComponentFromFlow = ( } case EmbeddedFlowComponentType.Timer: { - const timerConfig: {text?: string} = (component as any).config || {}; - const textTemplate: string = timerConfig.text || 'Time remaining: {time}'; + const textTemplate: string = resolve((component as any).label) || 'Time remaining: {time}'; const timeoutMs: number = Number(options.additionalData?.['stepTimeout']) || 0; const expiresIn: number = timeoutMs > 0 ? Math.max(0, Math.floor((timeoutMs - Date.now()) / 1000)) : 0; From c1c4f36b45f57605c71bcfb485d3d315f03359df Mon Sep 17 00:00:00 2001 From: ThaminduDilshan Date: Wed, 11 Mar 2026 18:49:06 +0530 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20add=20changeset=20=F0=9F=A6=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/twelve-moons-scream.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/twelve-moons-scream.md diff --git a/.changeset/twelve-moons-scream.md b/.changeset/twelve-moons-scream.md new file mode 100644 index 00000000..bd526501 --- /dev/null +++ b/.changeset/twelve-moons-scream.md @@ -0,0 +1,5 @@ +--- +'@asgardeo/react': patch +--- + +Modify timer text to use the label field