Skip to content

instruct-br/graphene-django-jwt-middleware

Repository files navigation

Graphene Django JWT Middleware

This is a Graphene Django middleware to check JWT in GraphQL schemas.

Installing

with pipenv:

pipenv install graphene-django-jwt-middleware

or poetry:

poetry add graphene-django-jwt-middleware

Usage

In your django settings.py file, find GRAPHENE configuration and insert at the MIDDLEWARE section:

...

GRAPHENE = {
    "SCHEMA": "...",
    'MIDDLEWARE': [
        'graphene_django_jwt_middleware.middleware.JWTAuthorizationMiddleware'
    ]
}

...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages