How to Solve NameError: name 'current_identity' is not defined -- flask_jwt

Solution: Import the 'current_identity' module

To Solve the error, add the following line to the top of your code.

from flask_jwt import current_identity

 

For more information:
Python flask_jwt current_identity