The library is not accepting the code generated by the authenticator app.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- authentication, security
Research direction
Start by reproducing the mismatch between an authenticator app's code and the library's generateTOTP and verifyTOTP functions, then inspect those functions and the current integer handling. Done means agreeing on a compatible algorithm or API behavior and demonstrating that codes generated and verified in both cases work correctly.
Written by the indexing model from the issue text.
Description
I suspect because the phone uses a 32bit integer and the library is now using BigInt. Would it be possible to keep the old algorithm as a separate function so people who want to use the library with a phone can use it or come up with a solution that allows the generateTOTPand verifyTOTP functions to work in both cases?
- Dominant language
- JavaScript
- Stars
- 338
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
check:failed feeds:add
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
iptv-org/database#38938 · 2 comments ·
Maintainers usually reply within 4 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
rescript-lang/rescript#9182 ·
Maintainers usually reply within 1 day
-
Analysis
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SACGF/variantgrid#2615 ·
Maintainers usually reply within 1 day
-
curriculum documentation quality
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
githubnext/gh-aw-workshop#5297 ·
Maintainers usually reply within 1 day