Open yusufertekin opened 2 years ago
sanic_jwt/authentication.py Line 262: Use configured user_id instead of hardcoded 'user_id'
user_id = payload.get('user_id') => user_id = payload.get(self.config.user_id())
Even with a fix for this on the source code, authentication fails when user secret enabled.
In my case, User object has a ID field named different than user_id.
I wanted to create a PR to contribute, however, contribution documentation returns 404.
sanic_jwt/authentication.py Line 262: Use configured user_id instead of hardcoded 'user_id'
user_id = payload.get('user_id') => user_id = payload.get(self.config.user_id())
Even with a fix for this on the source code, authentication fails when user secret enabled.
In my case, User object has a ID field named different than user_id.
I wanted to create a PR to contribute, however, contribution documentation returns 404.