TypeError: Cannot read property 'match' of undefined
    at module.exports (/opt/data/node/ptl-node.web-serv.wap-oauth2/src/helpers/get-brand-infos.js:16:30)
    at /opt/data/node/ptl-node.web-serv.wap-oauth2/src/routes/login.js:16:19
    at Layer.handle [as handle_request] (/opt/data/node/modules/quasar3/node_modules/express/lib/router/layer.js:95:5)
    at next (/opt/data/node/modules/quasar3/node_modules/express/lib/router/route.js:137:13)
    at /opt/data/node/ptl-node.web-serv.wap-oauth2/src/middlewares/not-authenticated.js:6:33
    at Layer.handle [as handle_request] (/opt/data/node/modules/quasar3/node_modules/express/lib/router/layer.js:95:5)
    at next (/opt/data/node/modules/quasar3/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/opt/data/node/modules/quasar3/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/opt/data/node/modules/quasar3/node_modules/express/lib/router/layer.js:95:5)
    at /opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:335:12)
    at next (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:275:10)
    at module.exports (/opt/data/node/ptl-node.library.wap/src/middlewares/set-client.js:9:5)
    at Layer.handle [as handle_request] (/opt/data/node/modules/quasar3/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:317:13)
    at /opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:335:12)
    at next (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:275:10)
    at /opt/data/node/ptl-node.web-serv.wap-oauth2/src/index.js:71:5
    at Layer.handle [as handle_request] (/opt/data/node/modules/quasar3/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:317:13)
    at /opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:335:12)
    at next (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:275:10)
    at session (/opt/data/node/ptl-node.library.wap/node_modules/express-session/index.js:475:7)
    at /opt/data/node/ptl-node.library.wap/src/middlewares/session.js:32:7
    at Layer.handle [as handle_request] (/opt/data/node/modules/quasar3/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:317:13)
    at /opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:284:7
    at param (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:354:14)
    at param (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:365:14)
    at Function.process_params (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:410:3)
    at next (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:275:10)
    at urlencodedParser (/opt/data/node/modules/quasar3/node_modules/body-parser/lib/types/urlencoded.js:91:7)
    at Layer.handle [as handle_request] (/opt/data/node/modules/quasar3/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:317:13)
    at /opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:335:12)
    at next (/opt/data/node/modules/quasar3/node_modules/express/lib/router/index.js:275:10)
    at jsonParser (/opt/data/node/modules/quasar3/node_modules/body-parser/lib/types/json.js:110:7)