Brandawg93 / homebridge-fordpass

Control your Ford vehicle in HomeKit using Homebridge.
GNU General Public License v3.0
62 stars 15 forks source link

Fix: [Bug]: error 401 (#165) #166

Closed ianjwhite99 closed 2 years ago

ianjwhite99 commented 2 years ago

Fix #165

After initial token response, we hit the https://api.mps.ford.com/api/oauth2/v1/token endpoint. This returns another access token that is authorized to access the other Ford API endpoints.

Brandawg93 commented 2 years ago

This is amazing! I got close with the put. I just couldn't figure out the format. Thanks! I noticed you said "we hit the endpoint" 😜. Do you happen to work for Ford? Either way, I would love to connect since you obviously know what you're doing here!

ianjwhite99 commented 2 years ago

I unfortunately don't work for Ford, if I did though it would be a heck of a lot easier trying to figure out all these dang endpoints. 😆

I just happen to own a Ford vehicle and got curious how FordPass worked, so I built a python and node library to be able to control my truck. It's very similar to what your homebridge plugin does (great work by the way).

If you're interested in chatting more you can reach me ay my email (iwhite99@protonmail.com) or on telegram (@ianwhite99)