mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-21 17:06:18 +00:00
Accept "token" as access token field name on login
This commit is contained in:
committed by
Florian BEZANNIER
parent
0089bd6523
commit
04244ac8ea
@@ -57,6 +57,8 @@ class InitialSetup:
|
||||
data = res.json()
|
||||
if token := data.get("accessToken"):
|
||||
self.token = token
|
||||
elif token := data.get("token"):
|
||||
self.token = token
|
||||
else:
|
||||
raise ConnectionError("No access token in response:", res.text)
|
||||
except ConnectionError as e:
|
||||
|
||||
Reference in New Issue
Block a user