From 5cd71cee6baa78aec199980b054774432ce29ff5 Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Mon, 2 Dec 2013 17:16:43 -0800 Subject: [PATCH] Use loopback.AccessToken as default --- lib/middleware/token.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/middleware/token.js b/lib/middleware/token.js index 589beb1b..26088855 100644 --- a/lib/middleware/token.js +++ b/lib/middleware/token.js @@ -14,7 +14,7 @@ module.exports = token; function token(options) { options = options || {}; - var TokenModel = options.model; + var TokenModel = options.model || loopback.AccessToken; assert(TokenModel, 'loopback.token() middleware requires a AccessToken model'); return function (req, res, next) {