blog_api_tutorial icon indicating copy to clipboard operation
blog_api_tutorial copied to clipboard

Deprecation Warning

Open btotharye opened this issue 5 years ago • 1 comments

Looking into trying to fix this but wasn't sure if you had already looked at this, nice tutorial btw on this.

api_jwt.py:82: DeprecationWarning: It is strongly recommended that you pass in a value for the "algorithms" argument when calling decode(). This argument will be mandatory in a future version.
    DeprecationWarning

Looks like the decode needs to supply the algorithms but when I do that it seems to break a lot of other stuff.

btotharye avatar Nov 05 '18 13:11 btotharye

Looks like if you were to modify https://github.com/olawalejarvis/blog_api_tutorial/blob/develop/src/shared/Authentication.py#L44 and add in algorithms=['HS256'] it will resolve this I'll issue a PR

btotharye avatar Nov 05 '18 13:11 btotharye