Closed BastiaanRudolf closed 7 months ago
Hey, Are you using the JWTSchema
?
Thank you for your response! I'm not at the moment. Should I?
I think that might solve it yeah.
You are right. That did the trick, thanks a lot! š
For others reading this, in my schema.py
I changed:
schema = strawberry.Schema(
query=Query,
mutation=Mutation,
extensions=[
DjangoOptimizerExtension, # not required, but highly recommended
],
)
to:
from gqlauth.core.middlewares import JwtSchema
...
schema = JwtSchema(
query=Query,
mutation=Mutation,
extensions=[
DjangoOptimizerExtension, # not required, but highly recommended
],
)
I think the docs lacks a note about that... I want to remove that schema anyways though...
Description
First of all thank you for all the time and effort you've put in this package! I really want to use it, but I've been running into an authentication issue for the last few days. I've followed the tutorial in the docs and everything works, except for the MeQuery at the very end, to which I get the following response:
With the full traceback:
Steps to Reproduce
FYI I'm using
from gqlauth.user import relay as mutations
and aCustomUser
with the settingAUTH_USER_MODEL = 'users.CustomUser'
authorization
and valueJWT ey...
and run the me queryRequirements
Any help or guidance is greatly appreciated! š