-
Notifications
You must be signed in to change notification settings - Fork 228
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
Comments
Wasted 2 hr fixing this Here is your saviour: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: