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,
) => {
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');