Skip to content

Commit

Permalink
quick validatin fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fotogiorgo committed Aug 25, 2024
1 parent 3402066 commit 9dea844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Game_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ async def start_online_game(p1_sid, p2_sid, game_id, player1_id, player2_id):
TOEKNSERVICE = os.environ.get('TOKEN_SERVICE')
def validate_token(id, token):
if token:
data = {"id" : id, "access" : token}
response = requests.post(f"{TOEKNSERVICE}/auth/token/validate-token/", data=data, headers=headers)
data = {"id" : id, "access" : token, "is_frontend" : True}
response = requests.post(f"{TOEKNSERVICE}/auth/token/validate-token/", data=data)
response_data = response.json()
if "error" not in response_data:
return True
Expand Down

0 comments on commit 9dea844

Please sign in to comment.