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
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const ChangePINSuccessScreen = createScreenWithDefaults(
* This scenario is used when a UK/EU cardholder changes the PIN of their physical card.
*/
export default {
allowedAuthenticationMethods: [CONST.MULTIFACTOR_AUTHENTICATION.TYPE.BIOMETRICS],
allowedAuthenticationMethods: [CONST.MULTIFACTOR_AUTHENTICATION.TYPE.BIOMETRICS, CONST.MULTIFACTOR_AUTHENTICATION.TYPE.PASSKEYS],
action: changePINForCard,
successScreen: <ChangePINSuccessScreen />,
defaultClientFailureScreen: <ClientFailureScreen />,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const ServerFailureScreen = createScreenWithDefaults(
* - Authentication failure: Return SHOW_OUTCOME_SCREEN to show failure screen
*/
export default {
allowedAuthenticationMethods: [CONST.MULTIFACTOR_AUTHENTICATION.TYPE.BIOMETRICS],
allowedAuthenticationMethods: [CONST.MULTIFACTOR_AUTHENTICATION.TYPE.BIOMETRICS, CONST.MULTIFACTOR_AUTHENTICATION.TYPE.PASSKEYS],
action: revealPINForCard,
callback: async (isSuccessful, callbackInput, payload) => {
if (isSuccessful && isRevealPINPayload(payload)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const ServerFailureScreen = createScreenWithDefaults(
* - Authentication failure: Return SHOW_OUTCOME_SCREEN to show failure screen
*/
export default {
allowedAuthenticationMethods: [CONST.MULTIFACTOR_AUTHENTICATION.TYPE.BIOMETRICS],
allowedAuthenticationMethods: [CONST.MULTIFACTOR_AUTHENTICATION.TYPE.BIOMETRICS, CONST.MULTIFACTOR_AUTHENTICATION.TYPE.PASSKEYS],
action: setPersonalDetailsAndShipExpensifyCardsWithPIN,

callback: async (isSuccessful, _callbackInput, payload) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('MultifactorAuthentication Scenarios Config', () => {
const setPinScenario = config[CONST.MULTIFACTOR_AUTHENTICATION.SCENARIO.SET_PIN_ORDER_CARD];

expect(setPinScenario).toBeDefined();
expect(setPinScenario.allowedAuthenticationMethods).toStrictEqual([CONST.MULTIFACTOR_AUTHENTICATION.TYPE.BIOMETRICS]);
expect(setPinScenario.allowedAuthenticationMethods).toStrictEqual([CONST.MULTIFACTOR_AUTHENTICATION.TYPE.BIOMETRICS, CONST.MULTIFACTOR_AUTHENTICATION.TYPE.PASSKEYS]);
expect(setPinScenario.action).toBeDefined();
expect(setPinScenario.callback).toBeDefined();
expect(typeof setPinScenario.callback).toBe('function');
Expand Down
Loading