twofas / 2fas-ios

Source code for 2FAS iOS app
GNU General Public License v3.0
480 stars 35 forks source link

Import error from LastPass Authenticator on iOS #69

Closed sarg3nt closed 4 months ago

sarg3nt commented 6 months ago

Just found out about 2FAS and am trying it out. I see it can import from LastPass Authenticator but it does not work. Says import error, file is too new of a version. Searched through previous tickets and looks like this has happened before.

2FAS iOS version is 5.2.0 Lastpass Authenticator Version: 2.15.0.1421 I took a look at the accounts.json file that the LastPass Auth app generated and some of the relevant data is

{
    "deviceName": "iPhone16,2",
    "version": 1
}
sarg3nt commented 6 months ago

Tried the QR code option and that also does not work.

StarryFire commented 6 months ago

I would suggest screenshotting the QR code for each individual token from last pass and then porting them over to 2FAS manually.

martinvw commented 6 months ago

I would love to switch to 2FAS, however, I face this same issue, is this something we can assist in?

The workaround is easy, just replace the version 1 with a 3, I could make a PR I suppose, I guess it would work by replacing the 3 to a 1 at:

https://github.com/twofas/2fas-ios/blob/c36d7d195f3ac0b06a88c8aa12eddb4f5f49cdde/TwoFAS/Data/MainRepository/DataTypes/LastPassData.swift#L23

adocyn commented 4 months ago

That should be fixed in latest version, although LastPass keep changing things and we're playing catch-up