why plural tokenS in lib/authenticate.js ? #4

Open
Dieterbe opened this Issue Jun 16, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Hi, in lib/authenticate.js the callback returns an object named tokens, but it only ever contains 1 token, maybe we should rename this variable to just token?

Owner

mmurphy commented Jun 20, 2012

Hi Dieter,
It maps to the Identity API which uses "tokens" as the last part of the url.
Also, it's just used internally within the module.

It may be the use of the variable in the callbacks in the examples that's causing some confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment