I'm fairly new to node.js, and very new to OAuth2, so my apologies if this is unbelievably basic...
I'm trying to make sense of the node.js authentication documentation, and I'm getting hung up on a couple of things.
- In the example for normal authentication is this line:
var TokenStore = require('TOKEN-STORE-IMPLEMENTATION');What "TOKEN-STORE-IMPLEMENTATION" is recommended? What are the possibilities? What are the requirements for a token store implementation? How would I find a compatible token store implementation?
- In the same section is this line:
What is "YOUR-AUTH-CODE"? Is that something configured on my Box application that I need to make sure matches between my code and the configuration? Is that something dynamically generaged (and if so, what should I do with it)?sdk.getTokensAuthorizationCodeGrant('YOUR-AUTH-CODE', null, function(err, tokenInfo) {
Thanks very much!