timdorr / tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.
https://tesla-api.timdorr.com/
MIT License
1.99k stars 532 forks source link

Tesla Oauth 2.0 api changed #691

Closed mrgaolei closed 1 year ago

mrgaolei commented 1 year ago

From 2023-2-15, I found OAuth API changed, When I POST 'https://auth.tesla.cn/oauth2/v3/token' return:

 {"error":"invalid_request","error_description":"Invalid code_verifier","error_uri":"https://auth.tesla.cn
/error/reference/6a57805b-4b6f-419b-be7b-316f722214a0-1676528054175"}

Who know what changes?

brianflex commented 1 year ago

This is being discussed here: https://github.com/timdorr/tesla-api/discussions/689 No answers yet, but maybe someone will discover something soon.

timdorr commented 1 year ago

690

Make sure your code_verifier is exactly 86 characters.