We do not need to set client_id and client_secret since it is deprecated, and we have the default client_id set as ownerapi within login!(password) function.
Step 2:
tesla_api.login!('tesla account email')
Why do I get this error?
NoMethodError: undefined method `split' for nil:NilClass
Do we need to update the ruby lib? Or let me know the latest way to use this Ruby lib to authenticate. Thank you!
Discussed in https://github.com/timdorr/tesla-api/discussions/523
Hey @timdorr, I got the same issue. You already updated this ruby lib with the new SSO authentication way. https://github.com/timdorr/tesla-api/blob/5e23c3bf856b62a6eb931d4cae717516186bb7b7/lib/tesla_api/client.rb#L61-L146
Based on your update, from my understanding, the step to authenticate is as follows: Step 1:
We do not need to set client_id and client_secret since it is deprecated, and we have the default
client_id
set asownerapi
withinlogin!(password)
function.Step 2:
Why do I get this error?
Do we need to update the ruby lib? Or let me know the latest way to use this Ruby lib to authenticate. Thank you!