-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: issues with refresh token and auth (#329)
Handle Auth issues - Missing credentials file - reauth (added tests) - Invalid credentials file - reauth - Incomplete token set - reauth - Missing access_token - refresh token Problem: We had a lot of auth and refresh token-related issues - #282 - #253 - #321 Most of these issues were happening while refreshing tokens. When a refresh token is missing or API fails to renew the token, it leaves the user in an abrupt state needing to explicitly run `neonctl auth`. Solution: This change handles different states of the `credentials` file as listed above. Also added unit tests for all these scenarios.
- Loading branch information
Showing
2 changed files
with
286 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.