Fix with test: _default_jwt_payload_handler doesn't handle dicts as the code seems to imply it should#86
Conversation
…ult_jwt_payload_handler is supposed to handle objects and dicts. I've added a test and my proposed fix for this.
|
all tests pass locally not sure what travis-ci is complaining about :( |
|
$ py.test tests/test_jwt.py .................... ========================================================================================= 20 passed in 2.27 seconds ========================================================================================== |
|
Weird, when run elsewhere its causing a problem but not for me, makes it hard to fix this :( |
|
Already fixed by #63 and many others. |
|
great, can join mainline again, thx |
|
I'll pull in your fixes from your branch https://github.com/webstack/flask-jwt/tree/fork into mine then in the meantime. |
Fixed a bug whereby a dict cause AttributeError even though the _default_jwt_payload_handler is supposed to handle objects and dicts. I've added a test and my proposed fix for this.