Closed perymerdeka closed 2 years ago
I found a solution from StackOverflow here: https://stackoverflow.com/questions/66200136/typeerror-object-of-type-function-is-not-json-serializable-when-using-flask-jwt
so in my mistake, I did not change @jwt_required
to @jwt_required()
I'm building an API using Flask-restx, I'm using a token system for authentication, I'm using Flask-JWT-Extended, in my case I managed to get the token, but I'm having trouble putting it in views, I'm using a decorator
@jwt_required
decorator on views like thisand this is my configuration using flask-JWT-Extended on my app
but I got this error
anyone know why this? or there is an example of using
Flask-JWT-Extended
withFlask-Restx
?, can it be solved?