Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve UX with out-of-date auth #282

Open
jamesbroadhead opened this issue Sep 26, 2024 · 0 comments
Open

Improve UX with out-of-date auth #282

jamesbroadhead opened this issue Sep 26, 2024 · 0 comments

Comments

@jamesbroadhead
Copy link

Steps to reproduce

$ neonctl me
ERROR: failed to refresh token
invalid_request (The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Make sure that the various parameters are correct, be aware of case sensitivity and trim your parameters. Make sure that the client you are using has exactly whitelisted the redirect_uri you specified.)

Expected result

$ neonctl me
ERROR: failed to refresh token
Your auth is out of date, run `neonctl auth` to refresh your token

# OR
$ neonctl me 
ERROR: failed to refresh token
Your auth is out of date, running `neonctl auth` to update your token
# browser opens, re-auths
┌───────┬─────────────────┬───────┬────────────────┐
│ Login │ Email           │ Name  │ Projects Limit │
├───────┼─────────────────┼───────┼────────────────┤
│ james │ [email protected] │ James │ -1             │
└───────┴─────────────────┴───────┴────────────────┘

## Actual result


## Environment


## Logs, links
- 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant