From 88412bf10e7ac362f9612e53ba9f966d67ebc692 Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 31 Dec 2025 16:09:10 +0100 Subject: [PATCH] Add auth type --- rpi/controllers/GameController.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()