wima75 / 2fas-desktop

1 stars 0 forks source link

Incorrect code and timing after import #1

Open edouard-lopez opened 7 months ago

edouard-lopez commented 7 months ago

related: https://github.com/twofas/2fas-android/issues/107#issuecomment-1951357974

Tanks for the time you took to create this app.

However, when I import into the app, the codes are not the same as in 2FAS and neither is the timing.

wima75 commented 7 months ago

strange. I tryed some libraries to generate the codes. With some, I had incorrect codes. Now I use otpauth, with this it works on my machine. Could you take a look in file %appdata%\2fas-desktop\tokens.json? What is the value for digits, period, algorithm and tokenType?

edouard-lopez commented 7 months ago

Note: On Linux it's located in ~/.config/2fas-desktop/tokens.json

I have something like this:

{
        "digits": 6,
        "period": 30,
        "algorithm": "SHA1",
        "tokenType": "TOTP",
}

I ran npm install && npm start to test the application

wima75 commented 7 months ago

did you make the backup on a android device?

edouard-lopez commented 7 months ago

Yep, from Android

wima75 commented 7 months ago

I don't know, what is going wrong. I am new to this TOTP-things