-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add authentication to graphql? #11
Comments
Adding authentication to GraphQL is quite easy, are you looking for a more high-level guide or something integrated with a library, such as Passport? |
I think that I will use Fastify Hook to create authentication. It's good or not? |
I have a preHandle hook which decodes a jwt and sets payload on the request. But I can't figure out how to access request object in graphql. Is there any way to pass it Inc context property of graphql options object |
Or should I set it in variables?? |
No description provided.
The text was updated successfully, but these errors were encountered: