How to use the @commercetools-frontend/mc-dev-authentication.routes function in @commercetools-frontend/mc-dev-authentication

To help you get started, we’ve selected a few @commercetools-frontend/mc-dev-authentication examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github commercetools / merchant-center-application-kit / packages / mc-scripts / config / webpack-dev-server.config.js View on Github external
app.use('/logout', (request, response, next) => {
      devAuthentication.routes.logout(response);

      if (localEnv.disableAuthRoutesOfDevServer) {
        next();
      } else {
        response.render('logout', { env: localEnv });
      }
    });
  },
github commercetools / merchant-center-application-kit / packages / mc-http-server / routes / logout.js View on Github external
module.exports = env => (request, response, next) => {
  if (!env.servedByProxy) {
    devAuthentication.routes.logout(response);
    response.render('logout', { env });
  } else {
    next();
  }
};

@commercetools-frontend/mc-dev-authentication

Authentication views when running webpack-dev-server in development mode

MIT
Latest version published 13 days ago

Package Health Score

87 / 100
Full package analysis