django-rest-framework-jwt
django-rest-framework-jwt copied to clipboard
setting JWT_PAYLOAD_GET_USER_ID_HANDLER ignored
User_id is read directly from payload leading to problems when using custom encoding on user_id field. Trivial fix: use api_settings.JWT_PAYLOAD_GET_USER_ID_HANDLER instead of payload.get('user_id'). Fixes issue #379
Can you add a test, please?
Tests added to exercise the code paths within jwt_get_secret_key
Could you please merge this PR?