Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/MultifactorAuthentication/Context/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function MultifactorAuthenticationContextProvider({children}: MultifactorAuthent

// Check if a soft prompt is needed
if (!softPromptApproved) {
Navigation.navigate(ROUTES.MULTIFACTOR_AUTHENTICATION_PROMPT.getRoute(CONST.MULTIFACTOR_AUTHENTICATION.PROMPT.ENABLE_BIOMETRICS), {forceReplace: true});
Navigation.navigate(ROUTES.MULTIFACTOR_AUTHENTICATION_PROMPT.getRoute(CONST.MULTIFACTOR_AUTHENTICATION.PROMPT.BIOMETRICS), {forceReplace: true});
return;
}

Expand Down Expand Up @@ -263,14 +263,14 @@ function MultifactorAuthenticationContextProvider({children}: MultifactorAuthent
// this happens on ios if they delete and reinstall the app. Their keys are preserved in the secure store, but
// they'll be shown the "do you want to enable FaceID again" system prompt, so we want to show them the soft prompt
if (!deviceBiometricsState?.hasAcceptedSoftPrompt) {
Navigation.navigate(ROUTES.MULTIFACTOR_AUTHENTICATION_PROMPT.getRoute(CONST.MULTIFACTOR_AUTHENTICATION.PROMPT.ENABLE_BIOMETRICS), {forceReplace: true});
Navigation.navigate(ROUTES.MULTIFACTOR_AUTHENTICATION_PROMPT.getRoute(CONST.MULTIFACTOR_AUTHENTICATION.PROMPT.BIOMETRICS), {forceReplace: true});
return;
}

// 4. Authorize the user if that has not already been done
if (!isAuthorizationComplete) {
if (!Navigation.isActiveRoute(ROUTES.MULTIFACTOR_AUTHENTICATION_PROMPT.getRoute('enable-biometrics'))) {
Navigation.navigate(ROUTES.MULTIFACTOR_AUTHENTICATION_PROMPT.getRoute('enable-biometrics'), {forceReplace: true});
if (!Navigation.isActiveRoute(ROUTES.MULTIFACTOR_AUTHENTICATION_PROMPT.getRoute(CONST.MULTIFACTOR_AUTHENTICATION.PROMPT.BIOMETRICS))) {
Navigation.navigate(ROUTES.MULTIFACTOR_AUTHENTICATION_PROMPT.getRoute(CONST.MULTIFACTOR_AUTHENTICATION.PROMPT.BIOMETRICS), {forceReplace: true});
}

// Request authorization challenge if not already fetched
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const SCENARIO_NAMES = {
* Prompt identifiers for multifactor authentication scenarios.
*/
const PROMPT_NAMES = {
ENABLE_BIOMETRICS: 'enable-biometrics',
BIOMETRICS: 'biometrics',
Comment thread
chuckdries marked this conversation as resolved.
Resolved
};

export {SCENARIO_NAMES, PROMPT_NAMES};
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import VALUES from '@libs/MultifactorAuthentication/Biometrics/VALUES';
* Exported to a separate file to avoid circular dependencies.
*/
export default {
[VALUES.PROMPT.ENABLE_BIOMETRICS]: {
[VALUES.PROMPT.BIOMETRICS]: {
animation: LottieAnimations.Fingerprint,
title: 'multifactorAuthentication.verifyYourself.biometrics',
subtitle: 'multifactorAuthentication.enableQuickVerification.biometrics',
Expand Down
Loading