IBM-Cloud / bluemix-go

Go library for accessing the Bluemix API
Apache License 2.0
37 stars 89 forks source link

Refresh token expiry not handled #129

Open ra-amitkumar opened 5 years ago

ra-amitkumar commented 5 years ago

One of our application uses the SDK for talking to the CIS API. The SDK handles the case where the access token expires but does not handle the case where the refresh token itself expires. We get the following error:

Authentication failed, Unable to refresh auth token: Request failed with status code: 400, BXNIM0408E: Provided refresh token is expired. Try again later

The only way to fix the issue is to restart the application where we get a new refresh token. Can this be handled within the IAM GO API ?