Closed
Description
Hello.
flask_jwt has a really useful feature - identity_callback. It is calling every time jwt_required decorator is triggered. In this user-defined call-back you may e.g. initialize a g.auth_user variable and use it from the protected endpoint.
In flask_jwt_extended to achieve the same I have to manually call get_jwt_identity() from every protected endpoint and\or add an additional decorator to every function, which is not very handy having hundreds of such points in the existing code.
Is there a way to trigger some functionality from the every protected endpoint automatically?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels