Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect code and timing after import #1

Open
edouard-lopez opened this issue Feb 19, 2024 · 5 comments
Open

Incorrect code and timing after import #1

edouard-lopez opened this issue Feb 19, 2024 · 5 comments

Comments

@edouard-lopez
Copy link

edouard-lopez commented Feb 19, 2024

related: twofas/2fas-android#107 (comment)

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
Copy link
Owner

wima75 commented Feb 19, 2024

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
Copy link
Author

edouard-lopez commented Feb 19, 2024

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
Copy link
Owner

wima75 commented Feb 19, 2024

did you make the backup on a android device?

@edouard-lopez
Copy link
Author

Yep, from Android

@wima75
Copy link
Owner

wima75 commented Feb 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants