You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello i am new in nodejs and i have the following error:
` "twoFactorJSON": twofactorAuth
^^^^^^^^^^^^^^^
SyntaxError: Unexpected string
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3
`
in app.js line 133-147
`var twofactorAuth;
if (fs.existsSync('twofactor.json')) {
twofactorAuth = JSON.parse(fs.readFileSync('twofactor.json'));
}
Just so you know, https://github.com/nodejs/help is generally a better repository for this kind of question, so unless you think something is a bug in Node itself, that’s the place to go.
Hello i am new in nodejs and i have the following error:
` "twoFactorJSON": twofactorAuth
^^^^^^^^^^^^^^^
SyntaxError: Unexpected string
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3
`
in app.js line 133-147
`var twofactorAuth;
if (fs.existsSync('twofactor.json')) {
twofactorAuth = JSON.parse(fs.readFileSync('twofactor.json'));
}
// Steam logon options
var logOnOptions = {
"accountName": configs.steam.user,
"password": configs.steam.password,
"twoFactorCode": SteamTotp.getAuthCode(twofactorAuth["shared_secret"])
"twoFactorJSON": twofactorAuth
};
`
The text was updated successfully, but these errors were encountered: