Questions tagged [speakeasy]
10 questions
1
vote
1 answer
Issuer label on QR code for 2FA not showing correct value
I am using speakeasy library and qrcode library, to generate an otpauth URL and then transforming it into a QR code, so this can be scanned by an authenticator app for 2FA on my website.
I want the authenticator apps to show my website in the…

Dennis
- 3,044
- 2
- 33
- 52
1
vote
1 answer
How to get image src for qrcode frrom Node js. to React js
I am creating a QR code using React Js. and Node js. I dynamically get the qrcode data in the node js and want to enter the qrcode data as src in img tag which is in React Js. How can i do that ?

yash khare
- 21
- 3
1
vote
1 answer
Is there a way to increase the token expiration time of Speakeasy
Currently i am using speakeasy to generate a OTP for two factor authentication.
speakeasy.totp({
secret,
encoding: 'base32'
});
I am generating the token using this. Its expiration time is 30s.
Can anyone know how to increase it?
I…

Chamith Madusanka
- 471
- 2
- 4
- 11
1
vote
1 answer
OTP generation in nodejs using speakeasy :set expiry time
I am using https://www.npmjs.com/package/speakeasy to generate OTP and i would like the expiry to 10 minutes.
Here is the code for generation
const generateOtp = function generateOtp() {
let token = speakeasy.totp({
…

shamon shamsudeen
- 5,466
- 17
- 64
- 129
1
vote
2 answers
error when trying to use speakeasy from a react-native project
error: bundling failed: "Unable to resolve module crypto from
myproject/node_modules/speakeasy/index.js: Module
does not exist in the module map\n\nThis might be related to
https://github.com/facebook/react-native/issues/4968\nTo resolve try
…

Uri
- 25,622
- 10
- 45
- 72
1
vote
0 answers
Generating a test QRCode that can be reused
I'm using this library for 2 factor auth: https://github.com/speakeasyjs/speakeasy
I'm using this QR Code library: https://www.npmjs.com/package/qrcode
In dev mode, I seed the database with a test user. But I'm on a team and now that 2FA is…

Daniel Kaplan
- 62,768
- 50
- 234
- 356
0
votes
0 answers
SPEAKEASY TFA With Google authenticator not working for IOS
Earlier it was working fine for both Android and iOS, but for the last few days only SHA1 is working for iOS. While validating the key it is returning "is Verified" as false. Whereas it is working perfectly for android devices.
Please help me out

Nitesh Agarwal
- 3
- 4
0
votes
1 answer
SpeakEasy security with secret exposed
I was using the speakeasy package to implement google auth in my app. After generating the secret as below.
var secret = speakeasy.generateSecret({
name: `***`
// encoding: 'ascii'
});
I would then validate like below:
let validOtp…

RandomDeveloper
- 29
- 3
0
votes
1 answer
auth and redirection with totp (speakeasy)
I did a TOTP (unique time-based password) with SpeakEasy, everything works fine, I put a condition (at the end of the code) to validate a token and then redirect it to a hidden page but it doesn't work, and I don't do not know why.
Thank you for…
user5824983
0
votes
1 answer
_http_outgoing.js:470 throw new ERR_HTTP_HEADERS_SENT('set'); Error: Cannot set headers after they are sent to the client : Nodejs web application
The Code in Users.js gets an error in the snippet at: qrcode.toDataURL(secret.otpauth_url, (err, data_url) => {.
I've tried adding return statement to make sure I'm not sending the response multiple times. I can see that the data_url when converted…

codingmonk
- 1
- 2