From 928accc6a157c2af2d6989b8e8b72a4655f9ae0c Mon Sep 17 00:00:00 2001 From: Rupato Braganza Date: Wed, 26 Feb 2025 16:58:28 +0800 Subject: [PATCH] fix: updated the state and added console.logs to check the return --- src/pages/callback/callback-page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/callback/callback-page.tsx b/src/pages/callback/callback-page.tsx index a9b273e2..0e99a7a8 100644 --- a/src/pages/callback/callback-page.tsx +++ b/src/pages/callback/callback-page.tsx @@ -6,6 +6,7 @@ const CallbackPage = () => { return ( , state: unknown) => { + console.log('state from oidcccc', state, tokens); const accountsList: Record = {}; const clientAccounts: Record = {}; @@ -54,7 +55,8 @@ const CallbackPage = () => { } const currency = sessionStorage.getItem('query_param_currency'); - window.location.assign(typeof state === 'string' ? state : `/?account=${currency || ''}`); + console.log('state from oidcccc', state); + window.location.assign(typeof state === 'string' ? state : `/?account=${currency || 'USD'}`); }} renderReturnButton={() => { return (