diff --git a/authenticator/src/main/kotlin/com/bitwarden/authenticator/data/platform/manager/imports/parsers/TwoFasExportParser.kt b/authenticator/src/main/kotlin/com/bitwarden/authenticator/data/platform/manager/imports/parsers/TwoFasExportParser.kt index e4e43e859a..dff15f7482 100644 --- a/authenticator/src/main/kotlin/com/bitwarden/authenticator/data/platform/manager/imports/parsers/TwoFasExportParser.kt +++ b/authenticator/src/main/kotlin/com/bitwarden/authenticator/data/platform/manager/imports/parsers/TwoFasExportParser.kt @@ -74,7 +74,8 @@ class TwoFasExportParser : ExportParser() { entry.name.equals(other = algorithm, ignoreCase = true) } } - ?: throw IllegalArgumentException("Unsupported algorithm: ${otp.algorithm}.") + // Default to SHA1 if not specified + ?: AuthenticatorItemAlgorithm.SHA1 return AuthenticatorItemEntity( id = UUID.randomUUID().toString(),