 ## Initialize tokens which contains applications and their tokens
 module.exports.init = (callback) ->
     # Read shared token
-    if process.env.NODE_ENV is "production" or process.env.NODE_ENV is "test"
+    if productionOrTest
         initHomeProxy () ->
             # Add token and permissions for other started applications
             db.view 'application/all', (err, res) ->

            for docType, description of appli.permissions
                docType = docType.toLowerCase()
                permissions[appli.name][docType] = description
            callback null


## function init (callback)


permissions = {}
tokens = {}

productionOrTest = process.env.NODE_ENV is "production" or
    process.env.NODE_ENV is "test"


## function checkToken (auth, tokens, callback)
