Skip to content

Commit

Permalink
fix: remove the option Dashlane authenticator for verification method
Browse files Browse the repository at this point in the history
  • Loading branch information
ptournem committed Oct 23, 2024
1 parent da11635 commit d7ad28a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/modules/auth/registerDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ export const registerDevice = async (params: RegisterDevice) => {
throw new Error('Master password-less is currently not supported');
}

const nonEmptyVerifications = verifications.filter((method) => method.type);

// Remove empty verification type
// Remove dashlane_authenticator from the list of verification methods as it is a deprecated method
nonEmptyVerifications.filter((method) => method.type !== 'dashlane_authenticator');
const nonEmptyVerifications = verifications.filter(
(method) => method.type && method.type !== 'dashlane_authenticator'
);

const selectedVerificationMethod =
nonEmptyVerifications.length > 1
Expand Down

0 comments on commit d7ad28a

Please sign in to comment.