jaredhanson / passport-local

Username and password authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-local/?utm_source=github&utm_medium=referral&utm_campaign=passport-local&utm_content=about
MIT License
2.73k stars 498 forks source link

Can support graphql ? #168

Open MinJieLiu opened 6 years ago

MinJieLiu commented 6 years ago

https://github.com/jaredhanson/passport-local/blob/master/lib/strategy.js#L71

The parameters of graphql are:

{
  body: {
    query: '{\n\tlogin(username: "xxx" password: "xxx") {\n    id\n    username\n  }\n}',
    variables: null,
    operationName: null
  }
}

It cannot be resolved.