The object exposed in model.js could be directly passed into the model parameter of the config object when initiating.
For example:
var memorystore = require('model.js');
app.oauth = oauthserver({
model: memorystore
});
You can also dump the contents of the memory store (for debugging) like so:
memorystore.dump();