diff --git a/rpi/controllers/GameController.py b/rpi/controllers/GameController.py index 872a295c..c2bbc27c 100644 --- a/rpi/controllers/GameController.py +++ b/rpi/controllers/GameController.py @@ -42,7 +42,7 @@ class GameController: jsonify({"status": "error", "message": "Game hasn't started yet"}), 400 auth_token = request.headers.get("Authorization") - if auth_token != self.auth_token: + if auth_token != "Bearer " + self.auth_token: return jsonify({"status": "error", "message": "Invalid authorization token"}), 401 self._game_service.make_move()