Kreya
Kreya copied to clipboard
Retry on invalid_grant authentication
Describe the bug
When a refresh_token is expired, or environment changed (different credentials needed); a request authentication would fail. We would need to manually go to auth tab and click reset and update.
I vaguely remember a few versions ago, manual reset was not needed.
To Reproduce Steps to reproduce the behavior:
- Authenticates with OAuth
- Let the token / refresh_token expires ; or change to a different environment which needs reauth
- Request would fail
Expected behavior
Kreya retries authentication from the beginning of the OAuth flow at least one
Which Kreya version are you using? I am unable to reproduce this with Kreya 1.14.0. Invoking an operation automatically fetches a valid token for me.
When you switch to the details tab in the authentication, does the token show as invalid/expired?
1.14.1-beta 1
It does show as invalid-grant yea. I'll capture a screenshot when it expires again
Ah now I got it. The bug only happens when a refresh token is present, but invalid/expired. We'll fix this in the next release
This has been fixed in the latest beta version and will be released in the next stable version
Kreya 1.15 has just been released, which fixes this.