Update JWT to not expire for nodes and expire in 1 hour for users
All checks were successful
release-image / release-image (push) Successful in 2m12s

This commit is contained in:
Logan Cusano
2025-06-29 01:43:09 -04:00
parent e89e67f33a
commit 7820e87989
2 changed files with 3 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ async def register_client(websocket, client_id, client_nickname):
print(f"Client {client_id} connected.")
# Create a JWT for the client
current_app.active_clients[client_id].access_token = create_access_token(identity={"id": client_id, "username": client_nickname, "type": "node"})
current_app.active_clients[client_id].access_token = create_access_token(identity={"id": client_id, "username": client_nickname, "type": "node"}, expires_delta=False)
print(current_app.active_clients[client_id])