Skip to content

Instantly share code, notes, and snippets.

@marekpiechut
Last active January 21, 2019 12:56
Show Gist options
  • Select an option

  • Save marekpiechut/8f46d709813360c816d776e697838584 to your computer and use it in GitHub Desktop.

Select an option

Save marekpiechut/8f46d709813360c816d776e697838584 to your computer and use it in GitHub Desktop.
Authentication and Authorization in NodeJS GraphQL API
app.use(passport.initialize())
app.use(passport.session())
const apollo = new ApolloServer(schema)
apollo.applyMiddleware({ app })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment