mseminatore / TeslaJS

An Unofficial Tesla API library for NodeJS
https://www.teslajs.org
MIT License
411 stars 99 forks source link

Getting "Error: Login credentials rejected" despite being able to login to my account on Tesla.com? #352

Closed klinquist closed 1 year ago

klinquist commented 1 year ago

Describe the bug

Hi Maintainers,

I've got a Model 3. I can manage it from Tesla.com; however, when I use this nodejs module with the same email & password, I get Error: Login credentials rejected. MFA is not enabled. Tried in my own code & the cli-based tool in the samples folder.

Screenshot-2023-07-16-09 26 03

Any ideas? Looks like this hasn't been maintained in awhile?

github-actions[bot] commented 1 year ago

Thank you for reporting this issue!

mseminatore commented 1 year ago

In 2021 Tesla broke login via this, and many other libraries, by introducing a required a reCaptcha step for login. We have not yet been able to fix this issue.

klinquist commented 1 year ago

Thanks, I was able to obtain an accessToken/refreshToken by logging in (and completing the captcha) as part of https://github.com/adriankumpf/tesla_auth

From there, I just refresh the token prior to making any request. Working now!