Closed rorycoconnor closed 1 year ago
Hi @rorycoconnor ,
Thanks for submitting this Issue! I'll add this idea to our triage.
@antusus
See PR #457. We'll release new CLI version in the next few weeks with this feature.
@rorycoconnor Want to let you know that we released Box CLI 3.8.0 version which has now the feature you requested.
Is your feature request related to a problem? Please describe.
While many Box customers are using the CLI daily or weekly, some only use it when there are pressing needs every few months or so. Due to this gap in usage, the refresh token stored with the CLI OAuth2.0 solution may expire. The process for generating new tokens is not straightforward, requiring the user to overwrite their working CLI Environment or creating a new one.
Describe the solution you'd like
A command that will use an existing environment with the stored ClientID/Client Secret to automatically bring up the "Grant Access to Box" page in the user's browser. Something like box configure:environments:refresh environment=[environment_name].
Describe alternatives you've considered
Another option is a prompt when the user receives the "Refresh Token Expired" error to begin the re-auth process.
Additional context
Screenshot of the error a user receives: