KundaPanda / strawberry-django-jwt

[UNMAINTAINED] JSON Web Token (JWT) authentication for Django with Strawberry GraphQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Rest Framework is not listed as a dependency.

pgoy-dod opened this issue · comments

My project does not currently use Django Rest Framework, so on line 15 of utils.py, i get an ImportError from strawberry-django-jwt.

Is Django Rest Framework necessary? It feels strange to need DRF when using GraphQL.

Hi,

Importing DRF is definitely not necessary and is only used in type hinting of get_context. I have removed the mandatory import in #126 and will soon release a new version with these changes.

Thanks! :D