O'Reilly logo
  • Nick Yu thinks this is interesting:

res.render('index', {access_token: body.access_token});

From

Cover of OAuth 2 in Action

Note

In my workstation it work as follow, it give me scope not defined if I don't put scope here. res.render('index', {access_token: body.access_token, scope: scope});