marcone/teslausb

Tesla API fails to update token if existing token is invalid

appleguru opened this issue · 0 comments

Describe the problem

Currently, v3 tokens expire every 8 hours (down from 45 days...). For some reason, after that initial 8hr period, they seem to not be getting refreshed properly currently:

Mon 25 Apr 14:52:02 EDT 2022: { "error": "invalid bearer token" }

Can we have the api code pull and save a new access token if it receives this error?

Device

Raspberry Pi 4

Car Model

Model S

USB connection

Center console

Logs

No response

Additional information

No response