Nimantha
Nimantha

Reputation: 333

Error: Initialize a JWTManager with this flask application before using this method

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

Answers (1)

Nimantha
Nimantha

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

Related Questions