fix: adding access token to storage regardless of scope

This commit is contained in:
Sajad Mirjalili
2025-09-29 17:26:04 +03:30
parent 190415c821
commit 8808d9bdb1

View File

@@ -95,9 +95,10 @@ export const AuthenticationSteps = (): JSX.Element => {
tokenResponse: GenerateTokenResponse, tokenResponse: GenerateTokenResponse,
) => { ) => {
setMemoryTokenRes(tokenResponse); setMemoryTokenRes(tokenResponse);
if (authFactory.isCurrentApplication()) { // 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); login(tokenResponse);
}
if (loginResult.registeredWithOutPhoneNumber) { if (loginResult.registeredWithOutPhoneNumber) {
setCurrentStep('addPhoneNumber'); setCurrentStep('addPhoneNumber');