Reputation: 333
How can I solve this error in python flask jwt token set script:
initialize a JWTManager with this flask application before using this method
Upvotes: 1
Views: 3749
Reputation: 333
I FOUND SIMPLY SOLUTION FOR INITIALIZE THE JWTManager
app = Flask(__name__)
app.config["MONGO_URI"] = "mongodb://localhost:27017/testdb"
jwt = JWTManager(app)
Upvotes: 2