Skip to content

Commit fc3f7ab

Browse files
committed
Fix magic link sign-in
1 parent bf879e3 commit fc3f7ab

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/pages/ValidateLoginPage/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import Navigation from '@libs/Navigation/Navigation';
55
import * as Session from '@userActions/Session';
66
import CONST from '@src/CONST';
77
import ONYXKEYS from '@src/ONYXKEYS';
8+
import {setNewDotSignInState} from '@userActions/HybridApp';
9+
import CONFIG from '@src/CONFIG';
810
import type ValidateLoginPageProps from './types';
911

1012
function ValidateLoginPage({
@@ -26,6 +28,11 @@ function ValidateLoginPage({
2628
}
2729
Navigation.goBack();
2830
} else {
31+
// On HybridApp we need to orchestrate the sign-in flow of both apps so we need to set the state to STARTED here
32+
if(CONFIG.IS_HYBRID_APP) {
33+
setNewDotSignInState(CONST.HYBRID_APP_SIGN_IN_STATE.STARTED);
34+
}
35+
2936
Session.signInWithValidateCodeAndNavigate(Number(accountID), validateCode, '', exitTo);
3037
}
3138
});

0 commit comments

Comments
 (0)