leeyuentuen / polestar_api

Polestar Api - Home Assistant Component
MIT License
112 stars 18 forks source link

use refresh token #40

Closed jyrkih closed 6 months ago

jyrkih commented 6 months ago

Fixes issue #1, utilizes refresh token. Request for refreshing access token is authenticated, so refresh needs to happen while access token is valid. Thus 300 second grace period before token expiration.

leeyuentuen commented 6 months ago

@jyrkih can you fix them that can merge to dev branch?

leeyuentuen commented 6 months ago

on your local,

git remote add upstream leeyuentuen/polestar_api git fetch upstream git checkout dev git merge upstream/dev

solve the conflict and then

git commit the code

or github said this

Step 1: From your project repository, check out a new branch and test the changes.

git checkout -b jyrkih-refresh-token dev git pull git@github.com:jyrkih/polestar_api.git refresh-token Step 2: Merge the changes and update on GitHub.

git checkout dev git merge --no-ff jyrkih-refresh-token git push origin dev