We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03b5737 commit c12d275Copy full SHA for c12d275
backend/flask_app/server.py
@@ -75,6 +75,7 @@ def login():
75
return jsonify({"msg": "Bad username or password"}), Status.HTTP_BAD_UNAUTHORIZED
76
77
# Identity can be any data that is json serializable
78
+ # TODO: rather than passing expiry time here explicitly, decode token on client side. But I'm lazy.
79
ret = {'jwt': create_jwt(identity=username), 'exp': datetime.utcnow() + current_app.config['JWT_EXPIRES']}
80
return jsonify(ret), 200
81
0 commit comments