From 8808d9bdb12c017426a817144759ba728fdd9dba Mon Sep 17 00:00:00 2001 From: Sajad Mirjalili Date: Mon, 29 Sep 2025 17:26:04 +0330 Subject: [PATCH] fix: adding access token to storage regardless of scope --- .../components/AuthenticationSteps/AuthenticationSteps.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/features/authentication/components/AuthenticationSteps/AuthenticationSteps.tsx b/src/features/authentication/components/AuthenticationSteps/AuthenticationSteps.tsx index 0435e78..f394e52 100644 --- a/src/features/authentication/components/AuthenticationSteps/AuthenticationSteps.tsx +++ b/src/features/authentication/components/AuthenticationSteps/AuthenticationSteps.tsx @@ -95,9 +95,10 @@ export const AuthenticationSteps = (): JSX.Element => { tokenResponse: GenerateTokenResponse, ) => { setMemoryTokenRes(tokenResponse); - if (authFactory.isCurrentApplication()) { - login(tokenResponse); - } + // TODO: For now both application scopes can have their tokens + // later we need to discuss this base on business plan and change it + // if (authFactory.isCurrentApplication()) {} + login(tokenResponse); if (loginResult.registeredWithOutPhoneNumber) { setCurrentStep('addPhoneNumber');