How to use @tinacms/teams - 1 common examples

To help you get started, we’ve selected a few @tinacms/teams 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 tinacms / tinacms / packages / gatsby-tinacms-teams / gatsby-node.ts View on Github external
exports.onCreateDevServer = ({ app }: any) => {
  app.use(cookieParser())
  app.use(express.json())

  if (process.env.REQUIRE_AUTH) {
    app.use(teamsRouter())
  }
}

@tinacms/teams

Express middleware for authenticating and authorizing with [Tina Teams](https://tinacms.org/teams/).

Apache-2.0
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis

Popular @tinacms/teams functions