DEV Community

Discussion on: Flask Rest API -Part:3- Authentication and Authorization

Collapse
 
tallmyr profile image
Simon Tallmyr

Love the guide, really helping me understand how this works!

That said, there's is one unfortunate part that is outdated.
If you get at TypeError after setting up the JWT decorators, that's because they have changed. Instead of @jwt_require it now should say jwt_require()

Took me a good long time to figure that one out :)

Collapse
 
drsimplegraffiti profile image
Abayomi Ogunnusi

it should be @jwt_required()