in src/backend/app.py [0:0]
def check_authenticated(): return jsonify({"authenticated": current_user.is_authenticated})