jonasman / TeslaSwift

Swift library to access the Tesla API
MIT License
243 stars 72 forks source link

refreshToken() error 401 #179

Open Jim3750 opened 2 months ago

Jim3750 commented 2 months ago

My app works fine but I encounter the following issue when the token expires.

The library triggers refreshToken() (in Sources/TeslaSwift/TeslaSwift) and receives error 401 (Unauthorized).

In order to proceed, I have to login again (I use webLogin).

What could cause this?

Thank you.

mikeios commented 2 months ago

Hi, I have the same problem since I moved to Tesla FleetAPI The same code worked very well before, wo it is a little bit weird. Thank you very much if anyone has any potential solution to this issue!

jonasman commented 2 months ago

maybe the api changed? we need to look at this

wh1teSp commented 1 month ago

Hi, have the same problem Thx