             callback()
     
         User = connection.model "users", UserSchema
-    
-         # Populate user
+
         app.use (req, res, callback) ->
             authHeader = req.get "Authorization"
             return callback() unless authHeader

                return callback() if err or !user
                return callback() if expires.expired user.tokenExpire
    
                req.user =
                    username = user.username
    
                callback()
    
        # Authenticate
        app.post "/auth-token", (req, res) ->
            errorCallback = (err, status) ->
                res.json json.error(err), status or 500

crypto = require "crypto"
json = require "json-output"

#### Required plugins:
#
# * [__Express__](express.html).
# * [__Mongoose__](mongoose.html).
#
#### Can be configured:
#
# * __expire__ — Token expiration.
