konik registration

This commit is contained in:
MoreTorque
2026-01-25 09:01:29 -06:00
committed by Test User
parent 46d750151d
commit dcf1e0c394
2 changed files with 2 additions and 5 deletions
+1
View File
@@ -135,4 +135,5 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
{"NoFSC", {PERSISTENT, BOOL}},
{"BlendedACC", {PERSISTENT, BOOL}},
{"ManualTransmission", {PERSISTENT, BOOL}},
{"KonikId", {PERSISTENT, STRING}},
};
+1 -5
View File
@@ -34,11 +34,7 @@ def register(show_spinner=False) -> str | None:
"""
params = Params()
dongle_id: str | None = params.get("DongleId")
if dongle_id is None and Path(Paths.persist_root()+"/comma/dongle_id").is_file():
# not all devices will have this; added early in comma 3X production (2/28/24)
with open(Paths.persist_root()+"/comma/dongle_id") as f:
dongle_id = f.read().strip()
dongle_id: str | None = params.get("KonikId")
# Create registration token, in the future, this key will make JWTs directly
jwt_algo, private_key, public_key = get_key_pair()