pksunkara / octonode

github api v3 in nodejs
MIT License
1.19k stars 237 forks source link

Error: Validation Failed on Login with 2FA #280

Open jeson114 opened 7 years ago

jeson114 commented 7 years ago
 auth.config({
            username: username,
            password: password,
            otp:otp
            }).login(scopes, function (err, id, token) {
            if (err == null) {
                console.log(id);
                console.log(token);
            } else {
                console.log(err);
            }

            });

The snippet above throws an Error saying :Error: Validation Failed at Request._callback (/node_modules/octonode/lib/octonode/auth.js:90:31)

pksunkara commented 7 years ago

@jeson114 How are you getting the OTP?

jeson114 commented 7 years ago

Through google authenticator