Comments (2)
first thank you for your attention and spent time ==> the same behaviour ... is there is any contradiction with any windows files permissions i think the problem there i tested the old code and the new one by you give true on various machines and false on one machine even it generate the code successfully but when verifying is the problem
from speakeasy.
I tried your solution but the problem still occurs , my code :
import speakeasy from "./speakeasy";
const secret = "AZAD22113ADASDJQF";
const token = speakeasy.totp({
secret: secret,
encoding: "ascii",
step: 600,
});
const isValid = speakeasy.totp.verify({
secret: secret,
token: code,
encoding: "ascii",
window: 2,
});
from speakeasy.
Related Issues (20)
- Valid usage question (using this in reverse)
- Add function Speakeasy.otpauthFromURL HOT 1
- Demo site not working
- The issuer option is not included in latest realease HOT 3
- I made a fork, use that instead HOT 1
- Base32 secrets with a length not a multiple of 8 may produce incorrect codes
- New totp every function call HOT 2
- weird behaviour always gets false HOT 1
- Send key/secret to client
- TOTP verification failure HOT 2
- The URI format is described here: https://github.com/google/google-authenticator/wiki/Key-Uri-Format <https://github.com/google/google-authenticator/wiki/Key-Uri-Format>
- Old secrets doesnt work
- Ping
- can't read property generateSecretASCII of undefined HOT 2
- Buffer() is deprecated due to security and usability issues.
- TFA With Google authenticator not working for IOS HOT 2
- Unmaintained Package - Recommended Alternative
- util.deprecate is not a function, The function that is being deprecated
- Generated 2FA code is invalid and different from google Authenicator app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from speakeasy.