Open DAmrGharieb opened 3 years ago
hi guys hope every thing is going ok
i have a weird problem with speakseasy everything if going ok on my local machine when i uploaded to the iis the verify function always gets false
`app.post("/verifySecret", async (req, res) => { let data = await getSecret(req.body.email); if (data == undefined) { res.send({ "status": 404, "message": "Email account not registered" }); return; }
let valid = { "valid": speakeasy.totp.verify({ secret: data.secret, encoding: "base32", token: req.body.token, window: 0 }), "secret":data.secret, "token":req.body.token }; res.send(valid); });`
i checked everything the secret key come from database the token is working on my local machine but on iis not attached two photos at the same time
Wasted 2 hr fixing this
Here is your saviour: https://github.com/speakeasyjs/speakeasy/issues/138
hi guys hope every thing is going ok
i have a weird problem with speakseasy everything if going ok on my local machine when i uploaded to the iis the verify function always gets false
`app.post("/verifySecret", async (req, res) => { let data = await getSecret(req.body.email); if (data == undefined) { res.send({ "status": 404, "message": "Email account not registered" }); return; }
let valid = { "valid": speakeasy.totp.verify({ secret: data.secret, encoding: "base32", token: req.body.token, window: 0 }), "secret":data.secret, "token":req.body.token }; res.send(valid); });`
i checked everything the secret key come from database the token is working on my local machine but on iis not attached two photos at the same time