Skip to content
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

JWT Middleware #13

Closed
dwedigital opened this issue Jan 25, 2020 · 5 comments
Closed

JWT Middleware #13

dwedigital opened this issue Jan 25, 2020 · 5 comments

Comments

@dwedigital
Copy link

In your instructions you have the following:

GRAPHENE = {
    'SCHEMA': 'hackernews.schema.schema',
    # Add the line below
    'MIDDLEWARE': [
        'graphql_jwt.middleware.JSONWebTokenMiddleware',
    ],
}

'graphql_jwt.middleware.JSONWebTokenMiddleware', should just go into the Middleware section already in the settings.py file - not under the Graphene section

@F0rge1cE
Copy link

Same issue here: howtographql/howtographql#983

@mlab817
Copy link

mlab817 commented May 22, 2020

Came across the same issue today so still not fixed.

@fighcell
Copy link

fighcell commented Jun 13, 2020

This issue is still in the tutorial as of 13th June 2020. Following this issue resolution of issue by
removing the GRAPHENE variables MIDDLEWARE and adding to the MIDDLEWARE variable fixed the issue.

Check resolution here: https://github.com/howtographql/howtographql/issues/983

@Ivo-Evans
Copy link

Ivo-Evans commented Jul 21, 2020

Another solution in #10

@pratt3000
Copy link

should be "MIDDLEWARES", that fixed it for me. The "S" is missing in the tutorial as well as the source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants