diff --git a/.travis.yml b/.travis.yml index c91f446..a3e03de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js addons: - firefox: "39.0" + firefox: "57.0" sudo: false @@ -10,7 +10,7 @@ before_install: - "sh -e /etc/init.d/xvfb start" node_js: - - '4' + - '10' script: - npm i diff --git a/lib/routes/oauth.js b/lib/routes/oauth.js index 8da4f2c..9daf90c 100644 --- a/lib/routes/oauth.js +++ b/lib/routes/oauth.js @@ -24,7 +24,7 @@ var DIFFERENT_BROWSER_ERROR = 3005; * OAuth Login, redirects to FxA */ router.get('/login', function(req, res) { - var nonce = crypto.randomBytes(32).toString('hex'); // eslint-disable-line + var nonce = crypto.randomBytes(32).toString('hex'); // eslint-disable-line oauthFlows[nonce] = true; req.session.state = nonce; return res.redirect(redirectUrl('signin', nonce));