ianjwhite99 / connected-car-python-sdk

Open-source Python SDK for Ford vehicles connected with Sync Connect (Ford Pass)
MIT License
71 stars 12 forks source link

Fix: Update Access Token Generation #52

Closed ianjwhite99 closed 2 years ago

ianjwhite99 commented 2 years ago

Update OAuth2Client.ts to hit the https://api.mps.ford.com/api/oauth2/v1/token endpoint after first token fetch. This will return another accessToken that is validated and works with other API endpoints. Also adds new refresh token endpoint https://api.mps.ford.com/api/oauth2/v1/refresh

Fixes #51