Use loopback.AccessToken as default

This commit is contained in:
Ritchie Martori 2013-12-02 17:16:43 -08:00
parent 2c36935404
commit 5cd71cee6b
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ module.exports = token;
function token(options) { function token(options) {
options = options || {}; options = options || {};
var TokenModel = options.model; var TokenModel = options.model || loopback.AccessToken;
assert(TokenModel, 'loopback.token() middleware requires a AccessToken model'); assert(TokenModel, 'loopback.token() middleware requires a AccessToken model');
return function (req, res, next) { return function (req, res, next) {