8000 weird behaviour always gets false · Issue #137 · speakeasyjs/speakeasy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
weird behaviour always gets false  #137
Open
@DAmrGharieb

Description

@DAmrGharieb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0