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

weird behaviour always gets false #137

Open
DAmrGharieb opened this issue Apr 7, 2021 · 1 comment
Open

weird behaviour always gets false #137

DAmrGharieb opened this issue Apr 7, 2021 · 1 comment

Comments

@DAmrGharieb
Copy link

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

2021-04-07 21_34_20-Window
2021-04-07 21_34_39-Window

@suprim12
Copy link

suprim12 commented Apr 8, 2021

Wasted 2 hr fixing this

Here is your saviour:
#138

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