Skip to content

Commit c12d275

Browse files
author
Ankur Srivastava
committed
todo about json decoding
1 parent 03b5737 commit c12d275

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/flask_app/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def login():
7575
return jsonify({"msg": "Bad username or password"}), Status.HTTP_BAD_UNAUTHORIZED
7676

7777
# 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.
7879
ret = {'jwt': create_jwt(identity=username), 'exp': datetime.utcnow() + current_app.config['JWT_EXPIRES']}
7980
return jsonify(ret), 200
8081

0 commit comments

Comments
 (0)