heroku / heroku/platform-api

Missing ability to refresh token

Open
#37 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Ruby
Stars
216
Forks
85
PR merge metrics
No merged PRs in 30d

Description

I don't see a way to refresh the OAuth token once it has expired. The `#connect_oauth` function only accepts the original token, which appears to expire after a few hours. The standard OAuth handshake, and credentials provided by `omniauth-heroku` include a `refresh_token` attribute which may be used to automatically obtain a new token one it has expired. It would be nice if this gem accepted the `refresh_token` as a param (or if it already does, document it somehow. I don't see anything in the gem docs here or in heroic.), and could automatically do the refreshed token exchange.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.