Open alejandrodp opened 3 years ago
@alejandrodp were you able to resolve this? i don't think the function gets triggered
@mikedizon Actually, I gave up with this library and made my own middleware to process the tokens using cognitojwt. It was a better and simpler solution. Also probably I missed out some configuration that was preventing the function to get triggered like you points out. But if anyone has the same problem, I hope this issue can help for reference.
@alejandrodp thanks, i'll have a look at your project. i'm authenticating with auth0. hopefully there's some overlap
Problem
When I try to verify a token, graphene throws the unauthenticated user error, that is in the schema, but django-graphql-jwt doesn't show any error. I am missing something or there is a bug?
I am using these versions of the lib and its depndencies:
Django==3.1.5 graphene-django==2.15.0 graphene==2.1.8 PyJWT==1.7.1
Configuration
Function that I use to decode the tokens (because the default method not work with this tokens). Taken from here: https://github.com/jpadilla/pyjwt/issues/359#issuecomment-456608816
Schema
urls.py
Error when using graphql endpoint