whalebird-desktop icon indicating copy to clipboard operation
whalebird-desktop copied to clipboard

Handle refresh token and refresh before expire the access token

Open h3poteto opened this issue 5 years ago • 7 comments

Describe

Save refresh token when authorize, and it will be used refresh when expire the access token.

Why

Now I don't care the refresh token: https://github.com/h3poteto/whalebird-desktop/blob/master/src/main/auth.js#L79

But in the future the refresh token will be implemented.

h3poteto avatar Mar 21 '19 23:03 h3poteto

Doorkeeper returns expires_in when you get the access token. https://github.com/doorkeeper-gem/doorkeeper/wiki/API-endpoint-descriptions-and-examples#command-output-3 And refresh_token has already saved.

h3poteto avatar Mar 22 '19 00:03 h3poteto

Now Whalebird can refresh the token when launch application. But if the token expire while user is using application, user have to restart it. This case has not been handled yet.

h3poteto avatar May 22 '19 14:05 h3poteto

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. You can remove the stale label with /remove-stale comment. Thank you for your contributions.

stale[bot] avatar Mar 07 '22 09:03 stale[bot]

/remove-stale

h3poteto avatar Mar 07 '22 11:03 h3poteto

/remove-stale

stale[bot] avatar Mar 07 '22 11:03 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. You can remove the stale label with /remove-stale comment. Thank you for your contributions.

stale[bot] avatar Sep 03 '22 11:09 stale[bot]

/remove-stale

stale[bot] avatar Sep 03 '22 13:09 stale[bot]