-
Notifications
You must be signed in to change notification settings - Fork 16
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
doc: Example with passport-jwt requested #26
Comments
Sorry for answering this late. I never used passport-jwt. Did you figure this out already? Otherwise, I'll try to have a look at it in the next days |
@jovermier @jkettmann did either of you have a solution for this issue? |
Would love to see an update with this as well. We are looking to use graphql-passport to build the context so that the logged in user is included in the context, but we would like to use local passport email/password strategies when authenticating, but later on we would like to use passport-jwt to authenticate requests from a JWT Bearer Authorization Header. |
In one of my projects I now use
Then you could just use the
Note that I didn't test this, but I think it should work fine. I'll try to add an example when I find the time again 😓 |
Hi, could you add the example to the doc please |
I have been trying to figure out how to use graphql-passport with passport-local and passport-jwt for a couple days now. The GraphQLLocalStrategy built into graphql-passport is working. I have not been able to figure out how to authenticate without sessions and just use jwt. An example would be very helpful.
Thanks in advance for any help you can give :)
The text was updated successfully, but these errors were encountered: