You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.new now uses keyword arguments: email:, access_token:, access_token_expires_at:, refresh_token:, client_id:, and client_secret:. Note: access_token_expires_at should be a DateTime.
Methods .token=, .expires_in=, .created_at= have been removed. You can set these when creating the client.
Added a refresh_access_token method to obtain a new access token using a refresh token. Note: Tesla invalidates the previous refresh token when obtaining the new access token.